如何通过Open Graph标签朋友使用facebook api taggable_friends . 我的应用程序使用taggable_friends api我想在朋友墙上标记我的朋友 . 使用提及朋友或标记朋友https://developers.facebook.com/docs/opengraph/using-actions/v2.0#capabilities
我使用Open Graph doc Step by Step尝试但是给我“你,或者这个应用程序的Open Graph Test用户,必须至少发布过一次这个动作”如何设置?
2 回答
在FB javascript sdk上,
- fb dashboard -> Open Graph*
创建一个故事
列表项确保在操作类型中启用_tags,-user messages,-place等'capabilities'功能 .
*在你的js
1. call the js sdk
3. Login into FB asking with these scopes
4. Get the logged user taggable_friends with a function such as:
5. Now, we have stored the token ids in user_friend_list for those friends we want to tag in our post and we can use an Open Graph action like this in order to tag friends:
你可以在上面找到更多相关信息:
https://developers.facebook.com/docs/opengraph/using-actions/v2.1
希望你觉得它有用 .
错误消息“您或此应用程序的Open Graph测试用户必须至少发布此操作一次”意味着:在您需要此权限之前,您必须至少调用一次api .
我之前发生过这种错误 . 当我需要publish_actions权限时,facebook会告诉我:
然后我用我的应用程序调用/ me / feed api发布一个feed,然后错误就消失了 .
如果您是该应用的所有者,开发者或测试用户,则可以在审核批准之前使用这些API . 您可以在仪表板中为应用添加角色 .