开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜