I am using as3-fb-api which connects to js-api for a flash app. it works fine: login, get friends profile pics, logout, repeat.
BUT if the user opens a second browser tab pointed to facebook.com, and uses it to logout of facebook, then returns to my app, and hits the logout button which calls Facebook.logout(), the problems begin.
my app listens for:
Facebook.addJSEventListener( 'auth.statusChange' , om__statusChange ) ;
Facebook.addJSEventListener( 'auth.authResponseChange' , om__authResponseChange ) ;
Facebook.addJSEventListener( 'auth.login' , om__login_noticed ) ;
Facebook.addJSEventListener( 'auth.logout' , om__logout_noticed ) ;
Ideally I would expect that the Facebook.logout() would call the js, which would ajax the fb servers, to discover that the user is already out, and return the message for the app to handle.
In my firebug debugger, I see that the facebookjsbridge: logout function is called, but its callback, FBAS.handleUserLogout, is not called, and none of the eventlisteners are called either.
So what is the appropriate way to synch my app with the servers?