Facebook Graph API 评论不返回 [英] Facebook Graph API Comment Doesn't Return From

查看:30
本文介绍了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

但是,当我访问未发布在我自己页面上的评论时,同样不起作用,来自 字段永远不会返回.是否可以获取发布在不同页面上的评论的作者?

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/* — 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天全站免登陆