Search code examples
flashfacebookair

Why can't I log a user out of facebook in an AIR desktop application?


I'm building an AIR desktop app with facebook support using Adobe Flash builder. So far it's working alright, except for one detail, once a user logs in, that session stays open, even if the logout button is pressed. My logout code look like so:

                protected function logout():void {
                   FacebookDesktop.logout(handleLogout, APP_ORIGIN);
                }

I set APP_ORIGIN to "http://www.facebook.com". I checked Adobe's documentation and they say: appOrigin:String (default = null) — (Optional) The site url specified for your app. Required for clearing html window cookie. But I don't know what that means, what is the 'site url specified by my app'? Where do I get it? Sorry if this is a noob question.


Solution

  • Nevermind, I figured it out, what I did was define my app origin as localhost and now it works.