我在最新版本中使用的是 Facebook iOS SDK 3.1,并且我使用的是来自 FBNativeDialogue
的本地共享对话。
它的角落有一个“ friend ”按钮,我一直认为这是标记 friend (就像位置按钮标记位置一样),但我意识到这是帖子的隐私设置。
因此,我仍然对如何在帖子中标记 friend 感到困惑。当我输入 @ 后跟我 friend 的名字时似乎没有任何反应,这还没有实现吗?有谁知道实现这个的巧妙方法吗?
客户想要的类似于“你和谁在一起?”按钮,如下所示:
最佳答案
考虑到当前的 Facebook SDK (3.5.1) 文档,我认为这是不可能的 -- https://developers.facebook.com/docs/howtos/ios-6/#nativepostcontroller .它指出:
iOS 6 includes a native Share Sheet that lets users post status updates, photos, links, and locations to Facebook and includes support for setting the audience for the post and tagging the post with a location.
即使您通过 iOS 的通知中心在 Facebook 上发布内容,它也只允许您分享上述信息,而不会标记好友。
相反,您可以使用 Facebook View ,就像它们在此处所做的那样 https://developers.facebook.com/docs/tutorials/ios-sdk-tutorial/show-friends/ .但是,如果您必须使用 native 对话框,我看不出有什么办法。如果你让它工作,请告诉我们解决方案。
关于iphone - 能够在 Facebook 本地共享对话中标记 friend ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14519635/