My facebook login-button has been working great:
<fb:login-button length="long" background="light" perms="email"
After a user logs in, that facebook login button disappears. On my logout button I have something like this:
<a href="/security_logout" onclick="FB.logout();">logout</a>
When I click there, I'm logged out of both the facebook authentication mechanism and my own site. So then I see the "Log in with Facebook" button again.
Problem is suddenly I noticed when you logout (and
FB.logout() is called) the facebook login does not reappear! You are kind of stuck then. What changed? If I call this from Firebug:
if (response.authResponse) alert(response.authResponse);
else alert("not logged in");
I'll get an alert saying not logged in. However, if I call
FB.login(), I get this:
FB.login() called when user is already connected
Any idea what's going on? How do I get the Facebook login-button to reappear after someone has logged out?