Topic-icon Auto-Login not working

Active Subscriptions:

None
10 years 9 months ago #34310 by fb_547031077
Hi,

I am currently preparing the switch to Joomla 3. With Joomla 2.5 and JFBC 4.3.4 on my live site everything works fine. However with Joomla 3 and JFBC 5.0.1 the auto login does not not work - the login works when you are pressing the button. Is this a known problem?

Best Regards Michael
The topic has been locked.
Support Specialist
10 years 9 months ago #34323 by alzander
Replied by alzander on topic Auto-Login not working
No, it's not a known problem. That feature has been tested thoroughly on Joomla 3 and we haven't heard of it before. Is there a page we can look at to see what's happening? We'll gladly help you diagnose any issues that may be cropping up.

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

None
10 years 9 months ago #34333 by fb_547031077
Replied by fb_547031077 on topic Auto-Login not working
Hi,

thanks for your respond - I already fixed the problem (I already loaded the Facebook JS SDK in my custom template, and there seemed to be a conflict).

I have another question: I use a custom Login Module. Therefore I have not the Logout functionality of your Login module (logout of Facebook and Joomla). I have two small questions regarding this:

1) What will happen if I have enabled Auto-Login and don't logout the user from Facebook when he clicks logout? A few releases ago he always got logged in again, but this doesnt seem to happen. Is there any sort of time window when the re-login is disabled?

2) If I try to enable the functionality in my logout button I tried to just do something like this:
<a class="" href="javascript:void(0);" onclick="javascript:jfbc.login.logout_button_click('<?php echo $return; ?>')">

This does work, but the return code doesnt work as expected (there is always something like &Itemid=xyz at the end of the URL). I generate the return code like the standard Joomla Login module does. This works with the normal logout function, but not with your function. Do you create the return code in a different way?

Best Regards Michael
The topic has been locked.
Support Specialist
10 years 9 months ago #34339 by alzander
Replied by alzander on topic Auto-Login not working
Michael,
Your fix sounds correct, you shouldn't be loading the Facebook Javascript on your own. JFBConnect will load that and it needs to be initialized in a certain way to make sure that all the features we need are setup properly.

1) What will happen if I have enabled Auto-Login and don't logout the user from Facebook when he clicks logout? A few releases ago he always got logged in again, but this doesnt seem to happen. Is there any sort of time window when the re-login is disabled?

That should be fixed now. We put a cookie in the user's browser that disables the auto-login function. That cookie is set after the user has logged in through Facebook (either by clicking the button or through the auto-login functionality) of if they've logged out of Joomla (using any logout button). Whenever it's set, the auto-login function is disabled for as however long your Session Timer in Joomla's Global Configuration is set for.

2) I'm not sure why the Itemid=xyz would be there. We do 'process' the return URL a little to make sure that the user isn't directed to a Registered page (since they just logged out) and some things like that. We shouldn't be adding an Itemid though.
Some questions:
* Is the rest of the URL what you expect (what you set in the $return variable) but just with the extra bit on the end?
* Are you using SEF URLs? If so and you disable them, does it work better?

We can look into #2 more if you need, but not sure if it's important with the fixes we've implemented to answer #1.

Keep us posted,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 9 months ago #34343 by fb_547031077
Replied by fb_547031077 on topic Auto-Login not working
No thanks - #1 is enough for me. Actually this is exactly what I want :-)

Best Regards Michael
The topic has been locked.
Support Specialist
10 years 9 months ago #34347 by alzander
Replied by alzander on topic Auto-Login not working
Michael,
Awesome. Glad to hear we have what you're looking for. I'm glad the days of "don't use another logout button" are well behind us. When our users complain, we listen :)

If you have any other feedback, just let us know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks,
Alex
The topic has been locked.