I need to detect that a user unloads my Facebook app (navigates to somewhere else or logs out of Facebook). How can this be done? I have tried:
FB.Event.subscribe('auth.logout', function(response) {
console.log('logged out');
});
But this never fires :(