简体   繁体   English

在Facebook页面的评论上使用Facebook Graph Api获取“FROM”字段

[英]get the “FROM” field using Facebook Graph Api on comments for a facebook page

first of all, i own the page and i'm the only admin so i have to get the access_token of my page (after the last update of facebook) : 首先,我拥有该页面,我是唯一的管理员,所以我必须得到我的页面的access_token(在Facebook的最后一次更新后):

/{page_id}?fields=access_token

so this is the url i'm using to get the information of my desired comment: 所以这是我用来获取我想要的评论信息的网址:

/{comment_id}?fields=id,from,message&access_token=my-page-token

and still, the response is showing only the id and the message. 而且,响应只显示id和消息。 i don't know how to access the user information i'm using the access token to do so as mentionned in the facebook api docs and i own the page what am i missing? 我不知道如何访问我正在使用访问令牌的用户信息,如在Facebook api文档中提到的那样我拥有该页面我缺少什么?

Since the latests update in the Graph API, to get private information from the users, even the author of some public post. 由于在图谱API中更新了晚期,以便从用户那里获取私人信息,甚至是某些公开帖子的作者。 You need to get the auth token with the manage_pages scope to get permission to the page itself then get the app reviewed ( https://developers.facebook.com/docs/apps/review ) and last you must go thru the Business Verification or the Individual Verification. 您需要获取具有manage_pages范围的身份验证令牌以获取页面本身的权限,然后审核应用程序( https://developers.facebook.com/docs/apps/review ),最后您必须通过业务验证或个人验证。 The last is a legal contract to use the info. 最后一个是使用该信息的合法合同。

After that something else. 之后别的东西。 You have to ask the page-specific access token. 您必须询问页面特定的访问令牌。 That is in the /me/accounts , that will give you a list of pages that has given you access. 这是在/ me / accounts中,它将为您提供一个允许您访问的页面列表。 One of the fields is access-token or something like that. 其中一个字段是访问令牌或类似的东西。 With that token you must ask for the comments with the FORM field. 使用该令牌,您必须使用FORM字段询问注释。

Here I explain the details: Facebook Graph API: How do I get “from” field in comment 在这里我解释一下细节: Facebook Graph API:如何在评论中获得“from”字段

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

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