Hello, i can't logout a user when it's connected through facebook connect. I'm using the facebook developer toolkit. Anyone know how to "disconnect" a user ?
+3
A:
There are functions to logout a user:
FB.Connect.logout
and
FB.Connect.logoutAndRedirect
These calls log the user out of both your site and Facebook. The latter method also redirects the user once the logout dialog closes.
You might want to checkout this thread as well:
Kelsey
2010-05-21 16:24:22
Thank you for your answer. But i'm using a server side control. Can i call it from server side code ? If yes, how ? Thank you for your patience !
stighy
2010-05-23 18:05:51
@stighy You could always just write the javascript to the Page's startup javascript so it runs as soon as you server up the page.
Kelsey
2010-05-24 01:06:22
A:
I use the javascript function FB.Connect.logoutAndRedirect; The redirect sends them to somewhere we can kill the session on our side.
Nick
2010-05-21 16:26:24