ios - Facebook SDK 分享总是返回 sharerDidCancel
<p><div>
<aside class="s-notice s-notice__info post-notice js-post-notice mb16"role="status">
<div class="d-flex fd-column fw-nowrap">
<div class="d-flex fw-nowrap">
<div class="flex--item wmn0 fl1 lh-lg">
<div class="flex--item fl1 lh-lg">
<b>这个问题在这里已经有了答案</b>:
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>已解决,我的错误出在 AppDelegate 方法中:</p>
<p>这里是解决方案的链接<a href="http://jitu1990.blogspot.it/2015/05/share-with-facebook-from-ios-app.html" rel="noreferrer noopener nofollow">http://jitu1990.blogspot.it/2015/05/share-with-facebook-from-ios-app.html</a> </p>
<p>这是代码</p>
<pre><code>- (BOOL)application:(UIApplication *)application openURL:(NSURL* )url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
return [ application:application
openURL:url sourceApplication:sourceApplication annotation:annotation];
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
;
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
return [ application :application
didFinishLaunchingWithOptions:launchOptions]
}
</code></pre></p>
<p style="font-size: 20px;">关于ios - Facebook SDK 分享总是返回 sharerDidCancel,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/31279243/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/31279243/
</a>
</p>
页:
[1]