简体   繁体   中英

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. 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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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