I'm using Facebook connect with php library when I use
FB.Connect.logout();
it's log the user out from my 开发者_JS百科website but also it is logging him out from facebook.com
How can I fix that ?
You probably shouldn't try and do that.
Connect is a single sign on solution - if you log out anywhere you also log out on facebook and all affiliated sites.
You do have an option of forgetting about Facebook after the login has succeeded if you rely on your own cookies to persist a session, but in that case you can't use their logout buttons or javascript and you won't pick up if a user logs out of Facebook.
If you avoid doing auto-login/auto-logout you won't pick up if the user logs out of facebook, so using facebook connect features without re-checking the session status may fail.
精彩评论