darkman
darkman

Reputation: 1003

Facebook IOS SDK - How to know when return to app

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?

Upvotes: 0

Views: 72

Answers (2)

Ultrakorne
Ultrakorne

Reputation: 1303

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];

Upvotes: 1

Aziz
Aziz

Reputation: 612

-(BOOL) application:(UIApplication *)application handleOpenURL:(NSURL *)url{}

also you have to set URL Schemes in you .plist

Upvotes: 1

Related Questions