IOS Facebook SDK:sharerDidCancel:(id)sharer委托有什么问题?

前端之家收集整理的这篇文章主要介绍了IOS Facebook SDK:sharerDidCancel:(id)sharer委托有什么问题?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我使用facebook sdk工作得很好,除了委托“sharerDidCancel:(id)sharer”.

当我用本机对话框FB应用取消我的共享时,代理“sharer:(id)sharer didCompleteWithResults:(NSDictionary *)results”总是被调用?因此,当他们发布或取消对话框共享时,我无法处理我的用户,这是Facebook SDK for IOS的​​错误吗?

谢谢你的帮助!

解决方法

我刚刚浏览了Facebook SDK文档并找到了 this

sharer:didCompleteWithResults: when the user successfully shares. Furthermore there will also be a postId key in the results dictionary if the user gave the app publish_actions permissions. If that user has not logged in with Facebook Login,this method will also be called if the user clicks on Cancel.

因此,除非您已登录,否则检查取消将无效(这是垃圾).看起来您可以提供一些权限然后检查postId.

原文链接:https://www.f2er.com/iOS/334314.html

猜你在找的iOS相关文章