简体   繁体   English

在Facebook的ios SDK的“消息”参数中包括Facebook朋友

[英]Include Facebook friends in “message” param of facebook's ios SDK

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. 我正在开发一个iPhone应用程序,并且希望能够在Facebook Request GraphAPI调用中包含一条消息,其中包括一些朋友。 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. 通常,在FB中发表评论时,我会键入“ @ name1”,“ @ name2”,然后他们的FB个人资料就会出现,并且他们会收到一条通知,告知我在评论中标记了他们。

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? 有没有一种方法可以格式化ios SDK中的“ message”参数,以使用户名出现并在消息中被标记?

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. 您应该按照此处建议的方式使用to字段来指定帖子中提到的朋友的用户ID: https//developers.facebook.com/docs/reference/api/post/,但您只需传递以逗号分隔的列表发布时的ID。 When getting you get back an array of objects. 当你得到一个对象数组。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM