Apsalar 问:
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
[Apsalar startSession:@"yourAPIKey" withKey:@"yourSecret" andURL:url];
return YES;
}
http://support.apsalar.com/customer/portal/articles/717510-integrating-the-ios-sdk
脸书问
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
// attempt to extract a token from the url
return [FBSession.activeSession handleOpenURL:url];
}
https://developers.facebook.com/docs/howtos/login-with-facebook-using-ios-sdk/
我不确定要使用哪个,因为我假设第一个 return 语句“完成”了方法调用,因此之后的任何内容都不会被调用。