Skip to main content
March 22, 2012
Question

Facebook Graph API

  • March 22, 2012
  • 2 replies
  • 1616 views

Hi All

Im having issues trying to logout and login as a different user. Once logged in you cannot login as another user.

To init -

FacebookMobile.init(appID, handleLogin);

To Login -

FacebookMobile.login(handleLogin,  this.stage, ["publish_stream"], mystagewebview, "touch" );

Im using the following to logout -

FacebookMobile.logout(logouthandler);

Also, Facebook requires an 'Android Hash Key'. How do you generate this?

Thanks in advance

L

This topic has been closed for replies.

2 replies

Participating Frequently
March 26, 2012

The trick to getting a successful logout is the Site URL value.  The value entered on Facebook for your app must be the same as the value passed to the method

FacebookMobile.logout(logoutHandler, "http://www.example.com/")

March 26, 2012

thanks for replying

my app is an android/ ios app so do i need to use the website section (as above) and enter a url?

feels like i should be using either the native android or ios option.

Im working on android initially because its an easier platform to deploy to and debug on but this requires a hash key. If i need to use the android option how do i create a hash key?

March 23, 2012

Anyone got any ideas on the above?

do you need to use the android hash key in Facebook?? The app seems to run fine on an android device without. Its just the logout doesn't work.

Btw I'm using the following swc -

http://code.google.com/p/facebook-actionscript-api/downloads/detail?name=GraphAPI_Mobile_1_8_1.swc&can=2&q=

March 26, 2012

any help on this please?