Facebook IOS SDK - How to know when to return to the application


How i know, when the user authorize the app, or not, and the SDK goes back to my app? Theres any event to know that?

in your appdelegate

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation

and you can inspect the sourceApplication.

Also in the applicationDidBecomeActive: remember to call [FBSession.activeSession handleDidBecomeActive];