× Joomla Facebook Connect support forum

Topic-icon Auto Login Facebook Issue

Active Subscriptions:

None
15 years 9 months ago - 15 years 9 months ago #4470 by fb_681968341
I'm not sure if this is a bug or most likely misconfiguration on my part. Whenever I have the option "Auto Login Facebook Users" enabled under user configuration. If a new user signs in using FB credentials the registration part goes through without any problems. The first problem occurs when the user tries to log back in using FB. The login page does not redirect properly. I have to refresh the page then it appears I am logged in.

The second problem is, when I hit logout using the Jomsocial logout I then get a message saying "automatically logging you in with your facebook credentials." While the mod_jfbclogin still indicates the logout state. The user has to click on this to be completely log out of the website.

If I set Auto Login Facebook users to no. The login/logout works beautifully.

Here are my settings:

JFBConnect version 3.0RC2.

File Attachment:


mod_jfbclogin

File Attachment:


Overall I am very satisfied with JFBConnect. IMHO, it blows away jomsocials built-in FB connection! I am also impressed by the support sourcecoast provides. Customer satisfaction is clearly your goal.
Last edit: 15 years 9 months ago by fb_681968341.
The topic has been locked.
Support Specialist
15 years 9 months ago #4474 by alzander
Replied by alzander on topic Auto Login Facebook Issue
Thanks for the kind words regarding our support. Yes, we think support is one of the most critical parts of any extension.

As for your issues, regarding logging in, when you say "When the user tries to log back in", are you saying just coming back to the page when they're already logged into Facebook, or actively clicking the "Login Using Facebook" button? I can envision the redirect not working if you're expecting it to on automatic login, but just need some more info to narrow it down.

With logging out, if you have the "automatic login" set, if you just try to log out of Joomla, on the next page load, it would probably try to log you back in.. causing the issue your seeing. Also, if you were to refresh the page, would it then show you as logged in (similar to the refresh required above)? I'm not sure why the module shows you logged out though, and that is something we'll investigate.

I know this isn't very helpful. We originally had the auto-login feature back around version 2.2, but removed it in a later version for similar issues. When we sat down to rewrite the component for 3.0, we architected the component much better to be able to handle auto-login, but it's obviously still a little rough around the edges. We'll get it going again though.

We'll do some more investigation on our end, and if you could clarify the few questions above, that'd help a ton.
The topic has been locked.
Support Specialist
15 years 9 months ago #4483 by alzander
Replied by alzander on topic Auto Login Facebook Issue
I forgot to mention, in regards to the logging out and then automatically logging back in problem. If you have "Logout of Joomla Only" set (so that you don't log out of Facebook when you click the button) AND have "Automatically log Facebook users" set, then this will cause the user to not be able to log out... every time they log out of Joomla (but not FB), on the next page load we see they are a logged in Facebook user with a Joomla account and log them in.

We'll be adding a note to the admin config area in an upcoming release noting that these 2 settings can conflict with each other.
The topic has been locked.
Active Subscriptions:

None
15 years 9 months ago #4497 by fb_681968341
When the user has already pressed the logout button. If they come back in that is when it just appears they have to re-enter the username and password again. The page does not redirect them to the jomsocial user page. But if they happen to refresh their page then it will show they have logged in succesfully.

File Attachment:


I figured out by using the above option I don't have this problem.
The topic has been locked.
Support Specialist
15 years 9 months ago #4509 by alzander
Replied by alzander on topic Auto Login Facebook Issue
Ahh. Ok. Thanks for letting us know the setting that was causing it. We'll investiagate if we're possibly not reloading the page or properly doing something else to notify Joomla that a user has just logged in. Anything we find will go in the next release. We intended to get it out today, but think it won't be until Wed due to this and some other minor issues we'd like to investigate.

Thanks again!
The topic has been locked.
Active Subscriptions:

None
15 years 9 months ago #4589 by fb_712881506
I think I've got the same problem, using JFBConnect version 3.0RC2 too.
When I activate "auto login" option, the user can't log out. He only gets this message : "automatically logging you in with your facebook credentials."
The topic has been locked.
Support Specialist
15 years 9 months ago #4607 by alzander
Replied by alzander on topic Auto Login Facebook Issue
Do you have "Logout of Joomla Only" set to Yes? If so, then this is expected behavior since they're logging out of Joomla, and on the next page load, JFBConnect will notice they're logged into Facebook and try to log them in.

If not, are you using a different module to handle logging out? If so, that would only log them out of Joomla as well. We have some improvements for this in upcoming versions to tweak the logic and notify the admin clearer on how those 2 settings can actually conflict with each other. We don't plan on removing either though, just so you know.
The topic has been locked.
Active Subscriptions:

None
15 years 9 months ago #4626 by fb_712881506
Yes indeed, I have the "Logout of Joomla Only" set to Yes. I understand the issue. I think I will not use the automatic login then. Thank you!
The topic has been locked.
Support Specialist
15 years 9 months ago #4631 by alzander
Replied by alzander on topic Auto Login Facebook Issue
Glad to hear that was the problem (and not really a bug). In the upcoming release, we've re-arranged the options in the User Settings area and put this note at the bottom:

NOTE: Setting both "Auto Login Facebook Users" and "Log Out Of Joomla Only" to Yes will prevent users from logging out.
(When they log out of Joomla, the next page load will detect their Facebook status and log them back in)

Hopefully that will call it out clearer in the future. Both of those features were requests from users, so again, we don't plan on removing them, but can obviously be bad when used together. If you have other suggestions on how to make this clearer, feel free to let us know.

Thanks for you feedback!
The topic has been locked.