× Joomla Facebook Connect support forum

Topic-icon Logout option

Active Subscriptions:

None
13 years 10 months ago #3877 by fb_582622661
Logout option was created by fb_582622661
Is there a way to prevent automatically logging out of Facebook when logging out of a Joomla site? The problem is that when someone is playing a game on Facebook and then logs into the Joomla site and then they log out of the Joomla site it also logs them out of Facebook causing trouble with whatever game they were playing. Perhaps a way to disable this or to ask the user if they would like to log off from Facebook as well would be in order. Is there an easy way to do this?

Thanks.
The topic has been locked.
Support Specialist
13 years 10 months ago #3880 by alzander
Replied by alzander on topic Logout option
Unfortunately, no. This is actually done by Facebook's policies. When a user logs into a site using their FB credentials, at that point they're on the Facebook Network, in a way. It logs them into your site, and FB. When you log out, of either, Facebook states that they should be logged out of Facebook to prevent any privacy or security implications of possibly being left logged into Facebook.

I understand where they're coming from, as it could cause some problems, but I can't say I completely agree with the logic. We make JFBConnect in a generic way to abide by their policies though, so we don't anticipate changing this behavior.

Sorry this isn't the answer you're looking for.
The topic has been locked.
Active Subscriptions:

None
13 years 10 months ago #3881 by fb_582622661
Replied by fb_582622661 on topic Logout option

alzander wrote: Unfortunately, no. This is actually done by Facebook's policies. When a user logs into a site using their FB credentials, at that point they're on the Facebook Network, in a way. It logs them into your site, and FB. When you log out, of either, Facebook states that they should be logged out of Facebook to prevent any privacy or security implications of possibly being left logged into Facebook.

I understand where they're coming from, as it could cause some problems, but I can't say I completely agree with the logic. We make JFBConnect in a generic way to abide by their policies though, so we don't anticipate changing this behavior.

Sorry this isn't the answer you're looking for.


I see where they're coming from but the problem isn't them using their facebook credentials to log into the Joomla site. That I would understand. The problem is if they are logged into Facebook already and then they log into the Joomla site WITHOUT using the Facebook credentials. When this happens they should remain logged into facebook should they log out while the Joomla site remains unaware of them ever being logged into Facebook.

Would it cause a conflict of any kind of I showed your module only to those that have not loggeed in yet while showing a standard Joomla logout on every other page? Otherwise I may need to either abandon Facebook logins or write my own code to handle this. The other Facebook logins available all have their own quirks incuding one that changes the Joomla password of a user so they can ONLY log in through Facebook from then on.
The topic has been locked.
Support Specialist
13 years 10 months ago #3884 by alzander
Replied by alzander on topic Logout option
Ah.. I see what you're saying. I haven't looked at the code yet, but yes, that's something we should be able to prevent. We've changed our authentication and detection logic for checking when you're in FB and logged into Joomla a few times due to changes in FB's functionality. We hadn't noticed the bug you mention above, but if we can easily recreate it, we'll fix it.

Thanks for pointing it out. We're trying to get a bug fix release out this release for some other minor annoyances. We'll try to get this included.

Alex
The topic has been locked.
Support Specialist
13 years 10 months ago #3888 by mel
Replied by mel on topic Logout option
We just put up a new build of the JFBCLogin module (v2.6.1) that tries to address this issue, but we couldn't do exactly what you wanted regarding the log out.

Two changes were included:
1. If the user logs out of Joomla but is logged into Facebook with a different user (which is not mapped to the Joomla account), previous versions of JFBCLogin would still log the user out of Facebook. This bug has been fixed (They'll remain logged into FB when logging out of Joomla)
2. There is a new module parameter for "Log out of Joomla Only". This really only applies to the case where the Joomla user and the Facebook user match - as in your example above. If the option is set to Yes, then when the user logs out of Joomla, they will remain logged into Facebook. If set to No, they will be logged out of both. While this isn't an exact match to what you wanted, it's the best we can do. There's no way to tell how the user originally logged in to decide 'where' to log them out of.

These options should give you what you were originally looking for though. As always, let us know what you think!

-Melissa
The topic has been locked.