By Jason Ju on Friday, 26 December 2014
Posted in Technical Issues
Replies 3
Likes 0
Views 1.3K
Votes 0
Hi,
Merry Christmas and Happy new year~
Right now we're working on social login integration for Easy Social, as we cannot access Facebook and Twitter in China for some reason... We have to integrate with domestic social medias.

Firstly, I try to integrate with Linkedin which we can also access to,
I found in "\administrator\components\com_easysocial\includes\oauth\clients", there's also LinkedinOauth class, and I set an instance of Linedin in "\components\com_easysocial\views\dashboard\view.html.php", then rendered a login button in "components\com_easysocial\themes\wireframe\dashboard\default.guests.login.php".
Then Linkedin login button is displayed in login page successfully, but nothing happened when clicked, the problem might be js script missing, as I can find "\media\com_easysocial\scripts\oauth\facebook.js", but there's no "linkedin.js" and "twitter.js".

To complete the Linkedin login, I think I have to create and finish "linkedin.js", am I right? Any other work to do?

I also looked into JFBConnect, we can use the Linkedin part, but we still have to integrate with domestic social medias with JFBConnect.
I want to estimate the feasibility and effort of integrating with easysocial directly, or integrating with JFBConnect. Which solution would be better? Can you give me some suggestion?

Thanks.
Hello Junhai,

You should look at the existing client library that we have for Facebook and duplicate a similar class for your other social logins. As for the js file, it's entirely up to you what you want to name it but we actually use "event handlers" to initiate "on click" events. See the file here, /media/com_easysocial/scripts/oauth/facebook.js
·
Friday, 26 December 2014 12:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
Thanks, I'm glad to hear that, it seems I'm on the right way:)

When I sign in with Linkedin, I got an error message: "Sorry, the oauth client provided linkedin is an invalid oauth client."
I found there're 3 types of client in the config table: facebook, twitter, myspace.
How can I add other oauth clients into the configuration? I don't find the config page for social login except facebook.
·
Friday, 26 December 2014 17:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

All the settings related files are located at /administrator/components/com_easysocial/themes/default/settings/forms/
·
Saturday, 27 December 2014 15:03
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post