If you redirect the user to the login page, you must put the redirection in a callback function, which can be passed to FB.logout as a parameter, for example:
<a href="#" onclick="mysignout(url);">logout</a>
function mysignout(url) { FB.logout(function() { top.location.href = 'url' }); }
FB.logout seems to be making an ajax call to cancel authentication on the server and may take a few seconds to complete successfully. If you redirect the link to the binding, then FB.logout will not succeed before being redirected in some browsers. In particular, this will happen with IE.
See this post: FB.logout not working in IE8
Michael phillips
source share