Facebook Graph API注释不会从中返回 [英] Facebook Graph API Comment Doesn't Return From

查看:63
本文介绍了Facebook Graph API注释不会从中返回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Facebook评论,我想获取评论作者的用户ID.通过以下查询将评论发布到我拥有的页面上时,我可以获得此信息:

I have a Facebook comment and I would like to get the user ID of the author of the comment. I am able to get this information when the comment is posted on the page that I own with this query:

https://graph.facebook.com/v2.11/ comment_id ?fields = from& access_token = access_token

https://graph.facebook.com/v2.11/comment_id?fields=from&access_token=access_token

但是,当我访问未发布在自己页面上的评论时,该操作不起作用, from 字段永远不会返回.能否获得发表在其他页面上的评论的作者?

However, the same does not work when I am accessing a comment that is not posted on my own page, the from field is never returned. Is it possible to get the author of a comment that is posted on a different page?

推荐答案

是否可以让发表在其他页面上的评论的作者?

Is it possible to get the author of a comment that is posted on a different page?

不,该信息不再对您可用.

No, that information is not available to you any more.

https://developers.facebook. com/docs/graph-api/changelog/version2.11#gapi-90-pages :

/page/*-页面所拥有的任何对象的用户信息都不会包含在GET响应中,除非使用页面访问令牌进行请求.这会影响为Page拥有的对象返回数据的所有节点和边缘.

/page/* — User information will not be included in GET responses for any objects owned by (on) a Page unless the request is made with a Page access token. This affects all nodes and edges that return data for objects owned by a Page.

这篇关于Facebook Graph API注释不会从中返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆