Topic-icon Autologin not working on first attempt

Active Subscriptions:

None
I have "Auto Login Facebook Uers" = "On"

I notice the following:
  • I login to Facebook (or have an active session)
  • I visit my site and AutoLogin does not work
  • I refresh the page and AutoLogin works as expected

Should'nt autologin work on my first visit to the site?

Thanks.
The topic has been locked.
Support Specialist
14 years 9 months ago #13059 by alzander
Facebook recently changed a little bit, and that affects how the auto-login works. What's happening is that the first time a user visits the page with an active session, a cookie is set (by Facebook) with that user's information through Javascript. That Javascript happens -after- the page has rendered, which is where JFBConnect tries to auto-log the user in. On the next attempt, JFBConnect is able to then see the cookie and auto-log the user in.

We're looking into a Javascript fix to make it work on the first page load.. basically, the page would render, cookie would be set, and then the page would have to reload to let JFBConnect auto-log in. We're looking into it for the 4.0 release later this week, but it may not be implemented due to required testing until the release after that.

Hope that helps explain, and sorry for the inconvenience,
Alex
The topic has been locked.