Fórum

Login with Facebook account does not work

thumbnail
Balázs Jilling, modificado 13 Anos atrás.

Login with Facebook account does not work

Junior Member Postagens: 32 Data de Entrada: 18/11/10 Postagens Recentes
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, modificado 13 Anos atrás.

RE: Login with Facebook account does not work

Regular Member Postagens: 145 Data de Entrada: 31/01/11 Postagens Recentes
I am facing the same problem with same liferay version.

Any solution?
thumbnail
Gaurav Jain, modificado 13 Anos atrás.

RE: Login with Facebook account does not work

Regular Member Postagens: 145 Data de Entrada: 31/01/11 Postagens Recentes
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, modificado 12 Anos atrás.

RE: Login with Facebook account does not work

New Member Mensagem: 1 Data de Entrada: 02/08/11 Postagens Recentes
Hey,
Did you find a solution for this one?
Köszi,
Adam
thumbnail
Andrey Filippov, modificado 12 Anos atrás.

RE: Login with Facebook account does not work

Junior Member Postagens: 27 Data de Entrada: 21/10/10 Postagens Recentes
Hi,
I've just met the same issue.. Did you have a chance to resolve it?

Appreciate.
Marcin Sareło, modificado 11 Anos atrás.

RE: Login with Facebook account does not work

New Member Postagens: 21 Data de Entrada: 27/06/12 Postagens Recentes
Anyone solved?
thumbnail
Mazhar Alam, modificado 11 Anos atrás.

RE: Login with Facebook account does not work

Regular Member Postagens: 191 Data de Entrada: 25/11/11 Postagens Recentes
Any solutions??
thumbnail
Mika Koivisto, modificado 11 Anos atrás.

RE: Login with Facebook account does not work

Liferay Legend Postagens: 1519 Data de Entrada: 07/08/06 Postagens Recentes
If I remember correctly the facebook login in 6.0 requires a verified facebook account so that might be the cause.
John Monk, modificado 10 Anos atrás.

RE: Login with Facebook account does not work

New Member Postagens: 3 Data de Entrada: 17/02/14 Postagens Recentes
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, modificado 10 Anos atrás.

RE: Login with Facebook account does not work

Liferay Legend Postagens: 1519 Data de Entrada: 07/08/06 Postagens Recentes
It works in 6.1.1. Just make sure your FB account is verified or uncheck the require verified account on FB login configuration.