留言板

facebook login on liferay 7? (lots of screenshots)

Jason Miller,修改在6 年前。

facebook login on liferay 7? (lots of screenshots)

Junior Member 帖子: 25 加入日期: 16-7-11 最近的帖子
I've been over this a million times, but I can't figure it out. When I click facebook login, it shows facebook, asks for fb credentials, and then forwards back to Liferay login page without logging in. I've found lots of people with the same symptoms, but no clear solutions.

In Facebook I have set up the application with the redirect uri: https://www.------------.com/c/portal/facebook_connect_oauth/

In liferay, the site I want to use SSO is a virtual instance, so I'm using configuration - instance settings - authentication - facebook.

I even registered a live domain name and bought an SSL certificate and got that working just to rule out any undocument requirement for https.

Here's the facebook setup:








And then the liferay setup on the virtual instance:


And the facebook login prompt, using incognito.


And back to the liferay login page.


This gets logged to the log file:
01:10:05,054 WARN  [http-nio-8443-exec-3][PortalImpl:949] Redirect URL http://www.------------.com/welcome?
p_p_id=com_liferay_login_web_portlet_LoginPortlet&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&
_com_liferay_login_web_portlet_LoginPortlet_mvcRenderCommandName=%2Flogin%2Flogin_redirect is not allowed


Additional details: Liferay is behind nginx, which is running as an application router, routing 80 and 443 to 8080 and 8443. Nginx is doing the ssl termination with the actual .crt, and then nginx is talking to liferay via a self signed .crt on the liferay box. Http and https through nginx seems solid, but I'd be happy to review that if anyone is suspicious. I've tried to find other log outputs, but I don't see any.

Any idea what I'm doing wrong??
thumbnail
Scott McIntosh,修改在5 年前。

RE: facebook login on liferay 7? (lots of screenshots)

New Member 帖子: 9 加入日期: 10-3-26 最近的帖子
I've been poured over my configuration as well, and it just doesn't work.

There's a lot of people posting questions, but very few answers. Is Facebook login just broken? I guess my next stop is the Liferay Jira site.

Does anyone have this working with Liferay 7?
Rayappa Hattarwat,修改在5 年前。

RE: facebook login on liferay 7? (lots of screenshots)

Junior Member 帖子: 89 加入日期: 15-8-11 最近的帖子
Hello,
Refer this link it will work
http://liferayiseasy.blogspot.in/2015/11/login-in-liferay-with-facebook-account.html
thumbnail
Scott McIntosh,修改在5 年前。

RE: facebook login on liferay 7?

New Member 帖子: 9 加入日期: 10-3-26 最近的帖子
Thank for the reply.

I have seen that post - and many like it - but the Facebook developer site has changed and it is different now. For example, you can't create an app type of "Facebook Canvas". However, I have done the equivalent steps in the new interface (by adding the "Facebook Login" product (as they are called now).

My guess is that when the Facebook developer site UI changed, something changed in the Facebook API too, and Liferay needs to be updated to deal with it. I'm guessing of course.
Jason Miller,修改在5 年前。

RE: facebook login on liferay 7?

Junior Member 帖子: 25 加入日期: 16-7-11 最近的帖子
I read a post elsewhere back then that that's exactly what happened. The facebook API has versions, and they only support the most recent 5, and the one Liferay relied on aged out. The post described modifying the strings in liferay to point to a local server instead with an http script processor of some language, intercepted the calls, corrected them, and passed the results back to liferay. But yeah it's probably just an empty field or something simple.
Jason Miller,修改在5 年前。

RE: facebook login on liferay 7? (lots of screenshots)

Junior Member 帖子: 25 加入日期: 16-7-11 最近的帖子

Would someone on the liferay team be kind enough to do a simple liferay install, a simple facebook login application, and document the process? I've literally been trying to figure this out for years, and I come back every few months and try the latest version, and it always fails. Does the facebook login still work? All of the documentation is old and leaves out crucial steps and basically just doesn't work. Truly guys, this feature has been broken for years. Please fix it, and document the setup process. Does anyone reading this know how to make someone from liferay at least read this, if not respond?