× Joomla Facebook Connect support forum

Topic-icon Jomsocial logout button

Active Subscriptions:

None
14 years 4 months ago #17990 by Ivan
Replied by Ivan on topic Jomsocial logout button
I just checked and i have the setting set to No. Im not sure why its set to YES when on the backend the option box is set to no.

Are you sure you are looking at my LIVE site. I just checked the HTML at is says var jfbcLogoutFacebook = true;
The topic has been locked.
Support Specialist
14 years 4 months ago #17994 by alzander
Replied by alzander on topic Jomsocial logout button
I just looked at the site you sent me by PM, which is like mybl.rem.com (shortened to obscure it, as I don't think you want it published. On the home page at least, the jfbcLogoutFacebook setting is showing up as false.

If there's a different page I should be looking at, please PM it to me. If not, there's something wrong with either JFBConnect or your setting.

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

None
14 years 4 months ago #18002 by Ivan
Replied by Ivan on topic Jomsocial logout button
Hi Alex,

On the homepage the var is false because its not logged in. However when im logged in it shows as true.

Should it be vice versa?
The topic has been locked.
Support Specialist
14 years 4 months ago #18018 by alzander
Replied by alzander on topic Jomsocial logout button
Ivan,
Apologies. I looked through our code, and indeed, that setting can change based on whether the user is logged in or not.

I did some more investigation of this issue today, and found the following 2 bug reports of similar issues:
stackoverflow.com/questions/8762756/face...-session-wont-delete
developers.facebook.com/bugs/23237779350...d1048c4b8b3884111464

Basically, Facebook isn't deleting their own cookie (as mentioned above) on some sites. We've only heard about this on your site, and possibly one others (we're still investigating), so it seems very uncommon. However, if you want to try to destroy the cookie yourself, the following code may work for you. In the /components/com_jfbconnect/controller.php file, in the logout function (at the bottom), add the following lines right before the $app->logout call:
$appId = $jfbcLibrary->facebookAppId;
unset($_COOKIE['fbsr_' . $appId]);

$app = JFactory::getApplication(); // ALREADY IN FILE
$app->logout();
You can use any browser's developer tools to check if the cookie exists before you click logout, and if it's properly destroyed after logging out. If not, let us know, and we'll try to come up with something else. Unfortunately, this seems to be a bug that Facebook introduced. While we'll be looking for workarounds, as there are other changes to their cookies that we need to accommodate, we may have to wait for them to fix this. Until then, if the above doesn't work, we'd recommend leaving the auto-login functionality disabled on your site.

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

None
14 years 4 months ago #18249 by Ivan
Replied by Ivan on topic Jomsocial logout button
I tried this however it still did not seem to work. I also could not dump the variables as it seems that the function it is in doesnt execute.
The topic has been locked.
Support Specialist
14 years 4 months ago #18265 by alzander
Replied by alzander on topic Jomsocial logout button
The function should definitely execute. After you dumped the variables, did you do an exit; statement? If not, there's a redirect that occurs later in the function which would hide any echo statements you'd put.

For now, we'd still recommend just disabling the Auto-login feature. The bug has been marked as "Fix Ready" in Facebook since Monday. We don't know when they'll push it out, but hopefully soon. When that's released, if there's still an issue, we'll release a 4.1.2 version to overcome the problem. The link below will let you get status on the bug as well:
developers.facebook.com/bugs/245362365535898

Alex
The topic has been locked.