Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+4 votes
2.1k views
in Q2A Core by
edited by
Some times, my users are not able to login using facebook (FB plugin included in the core).

Steps:

1. Facebook is logged in on other tab

2. Try to login to q2a by clicking FB-Login button

3. Pop-up will appear & disappear immediately. (Page doesn't refresh after that)

4. User is not logged-in

One work around (Doesn't work every time) is to open Facebook in another tab, logout & login through q2a.

Does anyone else facing same issue? Any solution for it?
Q2A version: 1.7.4 & 1.8
by
It makes sense for the popup to immediately close if the user is authenticated. That should generate a refresh and the user should get automatically logged in into Q2A. Are you saying the user is not logged in after doing so? Can you provide step by step instructions on how to reproduce this (I've been unable to do so)?

Is this happening with the FB client from the FB plugin included in the core or with the FB client included in the open-login plugin?
by
@pupi1985, I have updated question description,
by
Close all private sessions in your browser. Open a new private session. Navigate to facebook and login. In that tab navigate to your application's URL. Does a refresh happen and you get automatically logged in?
by
Yes.

But the point is, this bug doesn't appear every time. But once we hit this situation, only work around is to logout facebook
by
Any updates?
by
From my side, I've been unable to reproduced the situation you mention. I always see the popup that closes quickly and then I'm logged in. I tried around 20 times and tested throttling my internet connection in case it was some network delay issue.
by
@pupi1985, Thanks for the quick update... :)
by
Are you using any other social login plugin also?
by
Yes, I am using q2a-share (git://github.com/NoahY/q2a-share.git)
by
May be you can try without that. I had a similar issue when I used facebook plugin along with open-login plugin. Now, I'm using only open-login plugin and it works fine.
by
Thanks Arjun, I will give a try..
by
@arjunsuresh, open-login worked fine for me. Thanks for the suggestion.
by
you are welcome :)
by

2 Answers

0 votes
by
Same problem

Facebook login problem reloading the page only without login.
+2 votes
by
There is issue with fb login in v1.7.4. This is fixed now, you can take below one file from github and update in your plugin dir.

https://github.com/q2a/question2answer/commit/2da5fd733eb02ae5c61691a23bb65468a161f78a

download file base_facebook.php and upload to your /qa-plugin/facebook-login/ v1.7.4 dir. It should work.

https://github.com/q2a/question2answer/blob/1.8/qa-plugin/facebook-login/base_facebook.php
...