Since upgrading to Facebook 4.x, it no longer works:
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { return [FBAppCall handleOpenURL:url sourceApplication:@"yyyyxxxxyyyxxxx" withSession:[PFFacebookUtils session]]; }
since both application: handleOpenURL deprecated and the FBAppCall has been removed to replace BFURL.
I tried reading the Bolt Documentation , which suggests the following:
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { BFURL *parsedUrl = [BFURL URLWithInboundURL:url sourceApplication:sourceApplication];
... but then I'm not sure what to do with BFURL. Previously, this method simply contained:
return [[FBSDKApplicationDelegate sharedInstance] application:application openURL:url sourceApplication:sourceApplication annotation:annotation]; }
but now every time I try to enter FB (without the FB application installed), it exits in Safari, approves the application, returns to my application, but restarts it and cannot log in. After about 4 consecutive attempts, he sometimes enters the system. I suppose this is due to the fact that I am not correctly processing the return to the application, but I'm not sure what to add.
source share