【发布时间】:2015-06-26 14:47:56
【问题描述】:
我在代码中创建了一个 FBSDKShareDialog
- (void)shareWithFacebookDialog;
{
FBSDKShareLinkContent* content = [[FBSDKShareLinkContent alloc] init];
content.contentURL = [NSURL URLWithString:@"Path Redacted"];
content.contentTitle = @"Title Redacted";
content.contentDescription = @"Description Redacted";
FBSDKShareDialog* dialog = [[FBSDKShareDialog alloc] init];
[dialog setMode:FBSDKShareDialogModeNative];
[dialog setShareContent:content];
[dialog setDelegate:self];
[dialog setFromViewController:self];
[dialog show];
}
对话框启动,所有信息都正确
但只要点击 Post,对话框就会关闭并调用取消委托。
- (void)sharerDidCancel:(id<FBSDKSharing>)sharer;
有人看过吗?找到克服它的方法了吗?
【问题讨论】:
-
嗯,我完全不明白。您使用的是什么版本的 SDK,您有什么版本的 FB 应用程序?如果您能始终如一地获得重现,我建议您创建一个示例应用程序,并将其附加到此处的错误报告中:developers.facebook.com/bugs
标签: ios objective-c facebook