Liferay - Facebook SSO

Liferay Single Sign-On using Facebook-SSO

  • First, Log into http://developers.facebook.com with your Facebook credentials
  • Then go to Apps -> Register as a Developer
  • Then Click on -> Apps -> Create a New App

  • Here we have to give the “Display Name” for our application. Also, choose the Category as “Local”.

  • After submitting that, you will get some Client Id and Client Secret Code.
  • Now, Go to our Liferay Control Panel -> Portal Settings -> Authentication -> Facebook

  • Now, Enable the “Enabled” and “Verified Account Required” checkboxes.
  • And also give your client id and client secret code in the given boxes and save your changes.
  • And now sign out and again click the sign in button. There you can find out the facebook link. Click on that link and give your facebook credentials to login to the localhost.

Hope it Helps...!!

Blogs
This is an awesome post Tauseef. Just clarify when the SSO happens through FB, does it create an user record in Liferay?

Ahamed Hasan
Author, Liferay Cookbook
http://mpowerglobal.com/download-cookbook
This creates a new user if the Facebook id and email associated with the Facebook account is unique to the portal.
Do we have to publish this facebook account?
When user logout from liferay then facebook should also logout but that is not happening. Why?
I followed these steps
Still not able to login with facebook. It shows facebook login screen and logs in but after that It throws SocketTimedOut exception- Unable to retrieve access token from facebook.
I am using LR 6.2 CE ga4