在“消息”中包含 Facebook 好友facebook ios SDK 的参数
我正在开发一个 iPhone 应用程序,我希望能够在 Facebook Request GraphAPI 调用中包含一条消息,其中包括我的一些朋友。通常,在 FB 中发表评论时,我会输入“@name1”、“@name2”,他们的 FB 个人资料就会出现,他们会收到我在评论中标记他们的通知。
有没有办法在 ios SDK 中格式化“message”参数,以便用户的姓名出现并在消息中标记?
I'm developing an iPhone app and I'd like to be able to include a message with the Facebook Request GraphAPI call that includes some of my friends. Normally when commenting in FB I would type "@name1", "@name2" and their FB profile would come up and they would get a notification that I tagged them in a comment.
Is there a way to format the "message" parameter in the ios SDK such that user's names appear and they're tagged in the message?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该按照此处的建议使用
to
字段指定帖子中提到的朋友的用户 ID:https://developers.facebook.com/docs/reference/api/post/ 但您应该在发帖时传入逗号分隔的 id 列表。当获取时,你会返回一个对象数组。You should specify the user ids of the friends mentioned in the post by using the
to
field as suggested here: https://developers.facebook.com/docs/reference/api/post/ but you should just pass in a comma separated list of id when posting. When getting you get back an array of objects.