Legacy Facebook connect logout, how to avoid "You are logging out of both this site and Facebook" prompt
Whenever I use FB.Connect.logoutAndRedirect or FB.Connect.Logout functions from Facebook library, they give prompt "开发者_C百科You are logging out of both this site and Facebook". Is there any way to suppress this dialogue from showing up?
There isn't a way to do this using those functions and won't be as they have deprecated that library. The new facebook javascript sdk has Fb.logout() which doesn't have the dialog. This question has other possible alternatives, such as redirecting the user to:
http://www.facebook.com/logout.php?api_key=xxxxx&session_key=xxxx&next=http://yourwebsite.com
精彩评论