Open Graph beta: How can you tag friends in a action?

时光毁灭记忆、已成空白 提交于 2019-12-22 09:19:07

问题


I've managed to publish an activity using the Graph API. How can you tag friends in a action?

I can see you can add tags in the action dashboard, but other than that it's not specified how to tag friends.


回答1:


There's a simplified example at https://developers.facebook.com/docs/beta/opengraph/actions/#tagging

Actions can be tagged with places and people by specifying the place and tags optional parameters.

A sample call would be a POST to

https://graph.facebook.com/me/{APP_NAME}:{ACTION NAME}?
  {YOUR OTHER ACTION PARAMETERS HERE}
  &place={A PLACE ID}
  &tags={COMMA SEPARATED LIST OF UIDS}&access_token=YOUR_ACCESS_TOKEN

That would tag the users in the action, and also tag them at a place



来源:https://stackoverflow.com/questions/7569378/open-graph-beta-how-can-you-tag-friends-in-a-action

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!