这个问题在这里已经有了答案:
Best Answer-推荐答案 strong>
已解决,我的错误出在 AppDelegate 方法中:
这里是解决方案的链接http://jitu1990.blogspot.it/2015/05/share-with-facebook-from-ios-app.html
这是代码
- (BOOL)applicationUIApplication *)application openURLNSURL* )url sourceApplicationNSString *)sourceApplication annotationid)annotation {
return [[FBSDKApplicationDelegate sharedInstance] application:application
openURL:url sourceApplication:sourceApplication annotation:annotation];
}
- (void)applicationDidBecomeActiveUIApplication *)application {
[FBSDKAppEvents activateApp];
}
- (BOOL)applicationUIApplication *)application didFinishLaunchingWithOptionsNSDictionary *)launchOptions {
return [ [FBSDKApplicationDelegate sharedInstance] application :application
didFinishLaunchingWithOptions:launchOptions]
}
关于ios - Facebook SDK 分享总是返回 sharerDidCancel,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/31279243/
欢迎光临 OStack程序员社区-中国程序员成长平台 (https://ostack.cn/) |
Powered by Discuz! X3.4 |