Topic-icon Auto Login Facebook Users not working

Active Subscriptions:

None
12 years 2 weeks ago #21826 by guygoo
I've just noticed the auto Login Facebook Users is not working since update v4.2.

Any ideas?

Cheers
The topic has been locked.
Support Specialist
12 years 2 weeks ago #21832 by alzander
Guy,

Generally, when you upgrade, check/do the following things:
* Clear your Joomla cache
* If you use a CDN, disable it (temporarily) so that it will fetch the new Javascript in the new release
* Try clearing your browser, though it shouldn't be necessary

If none of that helps, can you let me know the page it's not working on, so we can test?

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

None
12 years 2 weeks ago #21833 by guygoo
Did all that already. I'll double check the CDN though and get back...

Cheers, Guy
The topic has been locked.
Active Subscriptions:

None
12 years 2 weeks ago #21837 by guygoo
OK, I've double checked and did the test again with a negative result.

Here's a link axus.com

Thanks, Guy
The topic has been locked.
Support Specialist
12 years 2 weeks ago #21840 by alzander
Guy,
I just registered on your site, logged out, and logged back in, all using Facebook. Not sure what it is that you're experiencing, but can you try on a different browser, different computer, or different Facebook user? It'll help to narrow down the cause to determine the best solution.

I was testing with Chrome on a Mac, just so you know.

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

None
12 years 2 weeks ago #21841 by guygoo
Thanks Alex.

With the configuration I'm looking at is: Once you've logged in with FB and then logout it should bounce you right back saying You have been logged in...

This was what happened before the update and now it does not work. I've tested different browsers and computers.

Can't think of anything I might have missed in the testing. Please let me know if there's anything you can think of.

Cheers, Guy
The topic has been locked.
Active Subscriptions:

None
12 years 2 weeks ago #21846 by sraimund
Hello,
I have the same problem. How to fix it?

Thank You
The topic has been locked.
Support Specialist
12 years 2 weeks ago #21849 by alzander
Guy/sraimund,
Just to confirm, when a user logs in with Facebook and then logs out you *want* them to be automatically logged back in? Maybe I'm confused, just trying to get clarification. In previous releases, we used to prevent admins from setting both the "Logout of Joomla Only" and "Automatically Log Facebook Users In" option, because, if the user wasn't logged out of Facebook, it would automatically log them back in.. like you mention.

We changed around our login mechanism for this release so that you can now enable both of those options. However, it should *not* automatically log you back in.

Please confirm what you're looking for, so we can understand better. If you want the user to not be able to log out, that seems strange. If (after the update), the user can't logout, that sounds like a bug, and we'll do what we can to fix it.

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

None
12 years 2 weeks ago #21853 by guygoo
Hi Alex,

Look Alex, it appears I'm more confused than you!!

I have explained what happened before the upgrade and although I did not use this function often I believed it to be a part of the program engineering and design. Now it seems you are saying this was a bug which you were not aware of?
You further say V4.2 has been changed, but for me the radio buttons have no function in your new version 4.2. However I toggle them and save there is no difference at all.
I've read the tool tips and to the best of my understanding if I've used Facebook authentication and I've not logged out of Facebook I should remain authenticated upon leaving and returning to the site?
As there is confusion about how exactly it was and how it is now, I wonder if you would be so kind as to be explicit about the intended function of the four radio buttons, that is,

Auto Login Facebook Users: Yes No
Logout Of Joomla Only: Yes No

As I mentioned there is no difference in any combination and that is really confusing.

Hopefully we'll get to the bottom of this soon :)

Cheers!
The topic has been locked.
Support Specialist
12 years 2 weeks ago #21860 by alzander
Let me explain as best I can what each function does, what used to be a bug (long ago), and how things work now.
Auto Login Facebook Users - If you've used JFBConnect to connect your Facebook account to a Joomla user on your site, this option takes effect. It works if 1) you are not logged into your website currently but you 2) are logged into Facebook.com. After logging in at Facebook.com, if you visit your site, you should be automatically logged in.

Logout Of Joomla Only - When enabled (Yes), when you log out of your website, you will be logged out of Joomla only. You will remain logged in at Facebook.com. When disabled (No), if you click the logout button, you will be logged out of your website and Facebook.com.

The bug comes from how we used to handle both of these settings. The 2nd option, for logging out users, only works if you use the Logout button from JFBConnect's SCLogin module. If a user clicks a logout button from another module or extension (like a Logout button in Community Builder or JomSocial), JFBConnect can't detect that. In that case, we can't log the user out of Facebook.com as well (if that setting is disabled). IF the "Automatically Log Facebook Users" in setting was enabled as well (in 4.1 or lower), the user would automatically be logged back into your site... in other words, they'd never be able to logout.

With JFBConnect v4.2, we changed how we automatically log users in so that even if they aren't actually logged out of Facebook.com (because they used a logout button that isn't part of JFBConnect), they aren't automatically logged back in.

The settings should definitely have the effects mentioned above. If not, let me know how you have them set, and I can let you know if they work how I expect them to work.. and then I can explain that more with some examples of how I tested.

Alex
The topic has been locked.