I am making a facebook application using the latest version of Xcode4.2 and the Facebook SDK. I copied the hackbook to my application and replaced the method name. Then it worked! [Enter image description here] [1]
But when I click the "OK" button, there is no answer. I checked the details. Somehow, iOS does not call OpenURL in appdelegate.m.
Why doesnβt iOS call the method? Here is the code.
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { return [self.facebook handleOpenURL:url]; } - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { return [self.facebook handleOpenURL:url]; }
Please let me know what happened.
Thanks in advance.
source share