Here, I am going to explain how to authenticate lifeary through facebook login. Let me walk you through steps below:
You first have to have a facebook application account. If you don’t have, create it. You can get more information here: http://developers.facebook.com/docs/guides/web
Select Apps Menu and click on Create a new App
Fill up information in opened pop-up window.
After clicking on Create App, you will get App ID and App Secret Code.
Next, Click on Settings menu from your left side menu panel. Select “Add Platform”
Fill in the App Domains text field e.g. If you are using locally, enter localhost
Select “Website” from opened popup:
Fill in the Site URL text field:
If you’re testing locally, you can set the Site URL as http://localhost:8080 and save it.
Login to Liferay portal as an administrator, Go To Control Panel and select Portal Settings from your left side menu panel.
Select Authentication tab –> Facebook , check Enabled, Fill in the Application ID text field and Application Secret text field (you get from facebook application account. See Step-4).
Don’t forget to enable “Allow strangers to create account” in General tab:
Go To Sign-in portlet. You can see facebook logo with link.
Click on the link and login in facebook. After login in facebook you redirect to Liferay Portal Page with a following Screen to add new user in Liferay, if you are already a member/User of Portal than user forced to automatic logged in using the SSO.
Helical IT Solutions