Question: I am working on simple facebook integration that allows users to post high scores to their wall. The way doodlejump handles this is my inspiration. I have it functioning, but it's not very clean and I'm not sure what to do.

I followed the instructions at <http://developers.facebook.com/docs/guides/mobile> to get up and running. One of the first things it has you do it call `[facebook authorize:nil delegate:self]`. After that you can call `[facebook dialog:@"feed" andParams:params andDelegate:self]` to make a post to the users wall. I have two issues with this.

First, when you call authorize it exits your app as that is facebook's new desired methodology as part of "One Single Sign-On" (OSS). That ok, what isn't ok is that my app is doing this even if the user is already signed on. I do not see a way to check if the user is already signed on.

The second issue is that it exits my app to authorize my app to post something to facebook. It seems acceptable to exit the app to sign on to facebook. Most users will have already done this, so no big deal. But my app should not have to exit just to get user authorization to post something. DoodleJump doesn't do that but I'm not sure how.

I tried digging through old posts but the SDK has changed so a lot of them are no longer valid. Thanks.

Answer: 
Based on the latest Facebook SDK (located at [Github](https://github.com/facebook/facebook-ios-sdk)) and it's example I have determined that this is the expected behavior.

It is built around the new fangled "fast app switching" so it looks like that is just what happens. 

A little lame imo but if that's what Facebook engineers have determined to be the optimal process then so be it.
I was having the same problem. Turned out it was because I hadn't set the URL Schemas in info.plist Where it says to fut fbYOUR\_APP\_ID make sure that you do this how they say. Your plist file should say something like fb12345 and then it will identify that the user has logged in correctly. offline\_access will then work as a result