且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Facebook JS SDK FB.logout()不会终止用户会话

更新时间:2023-09-09 23:26:04

https://developers.facebook.com/bugs/245362365535898?browse= search_4f112135664703a96454690
这是JS SDK中的一个错误,现在已经修复了,它应该推得不会太长。

在那之前你可以做以下事情

https://developers.facebook.com/bugs/245362365535898?browse=search_4f112135664703a96454690 This is a bug in the JS SDK that has now been fixed and it should get pushed in not too long.
Until then you can do the following

FB.logout(function(response) {
  FB.Auth.setAuthResponse(null, 'unknown');
  ...
});