4 ms·
Thanks, I need some direction here. I'm testing it out on my dev, and the login button is not turning into a logout button even when I am logged in via faceboo
by jaekwon 16y ago
Thanks, I need some direction here.
I'm testing it out on my dev, and the login button is not turning into a logout button even when I am logged in via facebook.
Also, FB.logout(); is logging the user out of facebook, which probably isn't desirable.
Is this only happening on my end?
- mileszs 16y agoEdit: Whoops. I didn't quite grasp what you were asking until I had already responded. I think that is the intended behavior behind FB.logout() (as opposed to only logging one out of your site and not out of Facebook). If you want to only log someone out of your site, you've probably got a session variable of some sort you want to destroy, right?
- NathanKP 16y agoYes, clearing the cookies on your domain will log users out of your site only. You can accomplish that with some simple JavaScript. Just check the cookies using your browser inspection tool to see which one is set by Facebook.