Casey Flynn Casey Flynn - 1 year ago 178
Javascript Question

Facebook JS SDK FB.logout() doesn't terminate user session

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


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 image description here

Answer Source 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');
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download