[英]how to tag a facebook profile from graph api
I want to post to a facebook page through API.我想通过 API 发布到 Facebook 页面。 I created a access token in the graph api explorer .
我在图形 api explorer 中创建了一个访问令牌。 I am able to successfully post to a page.
我能够成功发布到页面。 I am trying to mention a person I am not able to.
我试图提及一个我无法提及的人。 The old
@[id:name]
is not working.旧的
@[id:name]
不起作用。 But there seems to be a way with this .但似乎有办法解决这个问题。 But the issue is I am not able to tag because it wants me to enable tagging in
actiontypes
.但问题是我无法标记,因为它希望我在
actiontypes
启用标记。
After enabliing Tags in the Action Types section of the App Dashboard, add a tags parameter to your action publishing call, where tags is a comma separated list of tagging tokens for each person.
在 App Dashboard 的 Action Types 部分启用标签后,将 tags 参数添加到您的操作发布调用,其中 tags 是每个人的标记标记的逗号分隔列表。 These tagging tokens are retrieved using the /user/taggable_friends Graph API edge.
这些标记令牌是使用 /user/taggable_friends Graph API 边缘检索的。
When I click the link for action types it asks me for a app but it is not showing graph api.当我单击操作类型的链接时,它要求我提供一个应用程序,但它没有显示图形 API。 Is there something fundamentally wrong with what I am trying.
我正在尝试的东西是否存在根本性的错误。 How to proceed?
如何进行? I am using the Koala gem.
我正在使用考拉宝石。
Not sure if I understood you correctly, but if you want to tag some friends within a post, you should use the /me/taggable_friends
endpoint to get a list of friends:不确定我是否理解正确,但是如果您想在帖子中标记一些朋友,您应该使用
/me/taggable_friends
端点来获取朋友列表:
Then, you can use those to fill the message_tags
of the respective post:然后,您可以使用它们来填充相应帖子的
message_tags
:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.