php - Detect Facebook App Canvas Unloaded -


i need detect user unloads facebook app (navigates somewhere else or logs out of facebook). how can done? have tried:

fb.event.subscribe('auth.logout', function(response) {     console.log('logged out');     }); 

but never fires :(

why not try listen window unload event rather using facebook api:

window.addeventlistener('unload', function(event) {    console.log('bye bye!'); }); 

this should catch situations need


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -