Topic-icon Automatic Login not working correctly

Support Specialist
12 years 3 months ago #18169 by alzander
Rob,
I'm not sure how the language file would change anything. That's new to us, and there really shouldn't be anything that that file does. If you were to just copy the English file to the Italian directory (not changing any of the strings), does that still cause the problem? Just wondering if a special character or something else during the copy is causing the problem.

As for the auto-login bug, Facebook moved the status to "Fix Ready", which means it should go out over the next few days. We're hopeful they fixed it how we expect them to, but you never know. Again, we recommend disabling auto-login until then, and if the fix doesn't work, we'll try to work around it with a 4.1.2 release:
developers.facebook.com/bugs/245362365535898

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

None
12 years 3 months ago #18186 by robtms
Hello Alex
Thank you for the answer
After some experimentation I have limited the problem to the login / logout automatically with fb.
From this morning also works on login / logout with fb, the loop no longer occurs!! :)
I do not think I have made ​​corrections ... but it works!
Thanks for your support
The topic has been locked.
Active Subscriptions:

None
12 years 3 months ago #18187 by robtms
I'm sorry, I correct what I said:
not return error because I tried to change the "auto login / logout" with the user is already connected.

then reconfirm that with "Auto Login with Facebook Users = yes" I can not login to the site. : (
therefore expect the fix fb.
ciao
The topic has been locked.
Active Subscriptions:

None
12 years 3 months ago #18337 by paz
Greetings,

I just wanted to understand this problem a bit more to see if this is related to an issue I have on my site.

1) Autologin is set to on, however redirection is set to no.
2) I am logged into facebook but logged out of my site
3) I follow a link from facebook to my site. I arrive and I am logged out
4) If I refresh the page, then I am logged in.

So for my questions:
a) So is the above behavior explainable by the Facebook Jscript bug?
b) If I have autologin=yes, redirection=no does that mean it will still refresh the landing page to be logged in?

My issue is essentially that users who are registered with linked FB accounts are still not logged in on the page and I dont want redirection to occur.
Would it be possible to add a "redirect to self" perhaps, that would fix the FB issue in a roundabout way :)
The topic has been locked.
Support Specialist
12 years 3 months ago #18365 by alzander
Paz,
Your issue is a known, but different issue. Basically, Facebook's PHP library looks for a special cookie that is set for the user to check if they are logged into Facebook. However, that cookie isn't set until the user visits the page and fully loads the Javascript library, which is what sets that cookie in the first place.

This was a change in how Facebook did things that they introduced last year, and something we're working on a fix for, but don't have one available yet.

I'm not sure what you mean by "redirect to self". When the redirection is set to "no", the user will be left on the current page they logged in from (whether they clicked the Login with FB button or the autologin did it).

Hope that explains, though I'm sorry the autologin bug is affecting you. We're shooting to have this fixed in the 4.2 release.

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

None
12 years 3 months ago #18392 by robtms
ok thanks
I look forward
The topic has been locked.
Active Subscriptions:

None
12 years 3 months ago #18393 by paz
Thanks for the detailed answer. What I mean by redirect to self is that when a user is known on the site, and comes to my website from facebook (or is logged into facebook), they are not logged in. If they were to refresh the page they land on (in my site), they are now logged in because they are known.

What I would like is to automate that even with a meta refresh so I dont have to tell them "refresh the page".

Additionally what would be nice is a detection of unknown facebook users that brings up a modal popup asking them if they would like to use the facebook login and then proceed into the whole reg process (preferrably in a popup staying on the current page).
The topic has been locked.
Support Specialist
12 years 3 months ago #18412 by alzander
Paul,
The refresh on landing is something we're looking into. It shouldn't be too difficult, but it's a matter of making sure it works in all cases and (especially) doesn't cause any problems, like redirect loops or false detection of users.

As for detecting unknown Facebook users, that's not possible. Facebook only let's us/JFBConnect know about users that are logged into Facebook that have already approved your application. If they've never approved your application, we have no visibility into that user being a member of Facebook or not.

Hope that makes sense. If we find a quick solution for the auto-login issue, we'll let you know.

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

None
12 years 3 months ago #18413 by paz
Ok thanks Alex, I understand fully now and look forward to it.

Cheers,
p.
The topic has been locked.