Reputation: 47
I am trying to follow this tutorial
and tried to add this :
- (BOOL) application:(UIApplication *)application handleOpenURL:(NSURL *)url {
return [PFFacebookUtils handleOpenURL:url];
}
z
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
return [PFFacebookUtils handleOpenURL:url];
}
'handleOpenURL:' is deprecated
I looked this up and surprisingly couldn’t find any solutions. What can I put instead?
Upvotes: 2
Views: 1565
Reputation: 64634
The documentation I found recommends using [FBAppCall handleOpenURL:sourceApplication:withSession:] If the tutorial is using outdated code, you may come across more problems so I recommend finding a newer one.
Using this method in your code:
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
return [FBAppCall handleOpenURL:url sourceApplication:sourceApplication];
}
Upvotes: 3