Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
142
rated 0 times [  144] [ 2]  / answers: 1 / hits: 31292  / 13 Years ago, wed, january 11, 2012, 12:00:00

I'm attempting to log a user out of facebook with the Facebook JS SDK, however calling:



FB.logout(function(response){
console.log(response);
});


returns:
response.status == connected



And only after refreshing the page does the SDK realize that the session has ended. Anyone know what could be causing this behavior? This code previously worked in my application and has recently started behaving this way.



Another example using FireBug:



enter


More From » facebook

 Answers
7

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');
...
});

[#88087] Tuesday, January 10, 2012, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dominics

Total Points: 424
Total Questions: 99
Total Answers: 107

Location: South Korea
Member since Fri, Sep 11, 2020
4 Years ago
dominics questions
Wed, Apr 6, 22, 00:00, 2 Years ago
Thu, Jan 13, 22, 00:00, 2 Years ago
Fri, Sep 18, 20, 00:00, 4 Years ago
;