在“消息”中包含 Facebook 好友facebook ios SDK 的参数

发布于 2024-12-25 04:09:01 字数 209 浏览 2 评论 0原文

我正在开发一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时间你老了 2025-01-01 04:09:01

您应该按照此处的建议使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文