草庐IT

sharerDidCancel

全部标签

ios - Facebook SDK 分享总是返回 sharerDidCancel

这个问题在这里已经有了答案:FBSDKShareDialogcancelswhenitshouldpost(4个答案)关闭7年前。我正在尝试使用FacebookSDK分享帖子,但在我分享或取消帖子时总是会调用sharerDidCancel。这是我的代码-(void)shareFacebook{FBSDKShareLinkContent*content=[[FBSDKShareLinkContentalloc]init];content.contentURL=[NSURLURLWithString:@"http://www.google.com"];[FBSDKShareDialogsh

IOS Facebook SDK : what wrong with sharerDidCancel:(id<FBSDKSharing>)sharer delegate?

除了委托(delegate)“sharerDidCancel:(id)sharer”,我使用的facebooksdk运行良好。当我取消与native对话框FB应用程序的共享时,委托(delegate)“sharer:(id)sharerdidCompleteWithResults:(NSDictionary*)results”总是被调用?所以当我的用户发布或取消对话框共享时我无法处理,这是FacebookSDKforIOS的错误吗?感谢您的帮助! 最佳答案 我在iOS11中共享时遇到了同样的问题。我刚刚将原生FB对话框更改为Web对