留言板

Login with Facebook account does not work

thumbnail
Balázs Jilling,修改在13 年前。

Login with Facebook account does not work

Junior Member 帖子: 32 加入日期: 10-11-18 最近的帖子
Hi,

Creating a liferay user account with my facebook account works fine, but after that if I click on the facebook button at the login portlet the following happens:

- I get redirected to facebook to login if i don't have an active facebook session in my browser, it's ok.
- After that I get redirected to the Liferay page where I have started from but i don't get logged in.

The same happens if I have a facebook session without the redirect to facebook.

What can be wrong?

(I use Liferay 6.0.5)

Thanks,
Balázs
thumbnail
Gaurav Jain,修改在13 年前。

RE: Login with Facebook account does not work

Regular Member 帖子: 145 加入日期: 11-1-31 最近的帖子
I am facing the same problem with same liferay version.

Any solution?
thumbnail
Gaurav Jain,修改在13 年前。

RE: Login with Facebook account does not work

Regular Member 帖子: 145 加入日期: 11-1-31 最近的帖子
I am getting following error when trying to do facebook login:

ERROR [jsp:154] com.liferay.portal.security.auth.PrincipalException: /home?p_auth=TtY5d06h&p_p_id=58&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_58_struts_action=%2Flogin%2Ffacebook_connect&_58_redirect=http%3A%2F%2Fdemo.componence.com%2Fhome%3Bjsessionid%3D41F0CD9814F2575F89983DED0100F5C1%3Fp_p_id%3D58%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26p_p_col_id%3Dcolumn-1%26p_p_col_count%3D1%26_58_struts_action%3D%252Flogin%252Ffacebook_connect_add_user
      at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:164)
      at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:186)
      at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
      at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
      at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:652)
      at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:687)
      at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:360)
      at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:768)
      at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:571)
      at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:229)
      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
      at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:152)
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:508)
      at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:485)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)


I am using liferay version ce 6.0.5
I added a facebook application.
Enabled facebook login and updated add_id,secret_key,redirect_url.

Now on login portlet, clicked to facebook login.. redirected to facebook.. allowed my app, back to my portal, clicked add account button. then after it redirected me back to sign in page without making me signed in.
And with this exception in the logs.

However my user has been added in the users table.
Adam Eri,修改在12 年前。

RE: Login with Facebook account does not work

New Member 发布: 1 加入日期: 11-8-2 最近的帖子
Hey,
Did you find a solution for this one?
Köszi,
Adam
thumbnail
Andrey Filippov,修改在12 年前。

RE: Login with Facebook account does not work

Junior Member 帖子: 27 加入日期: 10-10-21 最近的帖子
Hi,
I've just met the same issue.. Did you have a chance to resolve it?

Appreciate.
Marcin Sareło,修改在11 年前。

RE: Login with Facebook account does not work

New Member 帖子: 21 加入日期: 12-6-27 最近的帖子
Anyone solved?
thumbnail
Mazhar Alam,修改在11 年前。

RE: Login with Facebook account does not work

Regular Member 帖子: 191 加入日期: 11-11-25 最近的帖子
Any solutions??
thumbnail
Mika Koivisto,修改在11 年前。

RE: Login with Facebook account does not work

Liferay Legend 帖子: 1519 加入日期: 06-8-7 最近的帖子
If I remember correctly the facebook login in 6.0 requires a verified facebook account so that might be the cause.
John Monk,修改在10 年前。

RE: Login with Facebook account does not work

New Member 帖子: 3 加入日期: 14-2-17 最近的帖子
We are having the same issue. Everything works fine but user is redirected to Liferay Login portlet after FB auth. Any resolution to this on 6.1.1 GA2?
thumbnail
Mika Koivisto,修改在10 年前。

RE: Login with Facebook account does not work

Liferay Legend 帖子: 1519 加入日期: 06-8-7 最近的帖子
It works in 6.1.1. Just make sure your FB account is verified or uncheck the require verified account on FB login configuration.