All,
I’m using Facebook Connect (JS SDK) to authenticate a user to my site. I’m checking to see if a logged in session variable is set on my site before even hitting code to check to see if a user is logged into facebook. This all works great however, when the user logs out of facebook and logs out of my site and I try and go back to my login back it still thinks that the user is logged into facebook even though I know they aren’t. How can I prevent this from happening? I tried to set autologoutlink=true on my login button but it doesn’t seem to be working.
Any ideas?
Thanks!
I’ve always had excellent results when calling FB.getLoginStatus() and redirecting the user to the appropriate content based upon those results. Three conditions (although for an app, the second two are quite the same in my opinion)
https://developers.facebook.com/docs/reference/javascript/FB.getLoginStatus/