× Joomla Facebook Connect support forum

Topic-icon login loops

Active Subscriptions:

None
13 years 11 months ago #24188 by paopie
login loops was created by paopie
Hi all,
I've seen a similar problem, but mine is more general.
If I login with facebook for a new user, FB ask username and password, then a Joomla form asking for new Joomla userid, password, confirm password appears.
It is impossible to write anything. It loops avery seconds.
I tried it on any browser (IE, FF, Opera, Safai, Chrome) and several machine (Mac/Win).
No chance to login.

Site is boutique-annab.com

File Attachment:
The topic has been locked.
Support Specialist
13 years 11 months ago #24195 by alzander
Replied by alzander on topic login loops
Paolo,
Well that's a first. We've never seen that reloading loop on registration. Let's see how we can help though! When the page is refreshing, if I catch it right, the HTML I'm seeing is:
<html><head><meta http-equiv="refresh" content="0;http://www.boutique-annab.com/en/component/jfbconnect/?view=loginregister&return=Lw%3D%3D" /></head><body></body></html>
That's not a page that would be created from JFBConnect to call a meta refresh. Do you know if you have anything on your site that would be intended for dynamic refreshes, that may just be working on the wrong page?

If not, please try the following and test after each one. If thing start working again without looping, let us know what step 'fixed' it, and then we can investigate more:
* Disable the "Automatically Log Facebook Users In" setting in JFBConnect
* Disable the JomSocial profile plugin
* Switch "Registration Flow" from "Full" to "Automatic".

In general, it seems likes Facebook is continuously calling the "User just logged in" javascript trigger. That should only occur once. Hopefully, the above will narrow down the possible cause and maybe give you a temporary solution as well.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 11 months ago #24197 by paopie
Replied by paopie on topic login loops
Hi Alex,
1) I disabled the "Automatically Log Facebook Users In" setting in JFBConnect

Result: I'm logged on FB with a user already registered in my application). Then I call my application and press login with Facebook: it opens a popup when FB asks my username and password and then log me into my application.
Then I logged out from my application (setting are Logout Of Joomla Only: YES).
Then I press again login with facebook in my application BUT it automatically reconnect me without asking. I think this is an error.

Now I logged out from Facebook and then I press again login with Facebook in my application: now it correctly ask me for userid and password.


Now I logged out from my app and try to login with Facebook using a new user: it correctly ask me for username and password without looping.
It seems to have solved my loop problem, so I think this could be a good starting point to deeply investigate.

Tahnk you

Paolo
The topic has been locked.
Support Specialist
13 years 11 months ago #24200 by alzander
Replied by alzander on topic login loops
Thanks for helping narrow it down. Still unsure why the loop is happening, but we'll try to do some testing with those settings. I already know that our automated testing recreates that scenario though, so I'm not sure how far we'll get.. it seems specific to your site for some reason since we've never seen it or heard it reported before.

As for:

Then I press again login with facebook in my application BUT it automatically reconnect me without asking. I think this is an error.

That is the correct behavior. Facebook and JFBConnect tries to be as 'frictionless' as possible. If the user is already logged into Facebook (in another tab) and has already approved your application, when they click "Login with Facebook", there's nothing to do. Authentication and approval have already occurred. So, there's no need for any popup, so they're automatically skipped.

Hope that makes sense,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 11 months ago #24205 by paopie
Replied by paopie on topic login loops
Well,
I have two facebook account, so I'd like to choose wich one use every time I login into my application.
But this is only for testing purposes. So I accept the correct behavior as you decribe it.
Paolo
The topic has been locked.
Support Specialist
13 years 11 months ago #24206 by alzander
Replied by alzander on topic login loops
If you leave the "Logout of Joomla Only" setting at Yes though, then the Facebook user is still left logged in. You can't login twice, and you can't 'switch' users. You have to logout and log back in one way or the other (either through your site or through Facebook).

Hope that all works for you, and good luck with your testing!
Alex
The topic has been locked.