图表API:无法从“在评论领域 [英] Graph API: Cannot get "from" field in comment

查看:183
本文介绍了图表API:无法从“在评论领域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我昨天使用Facebook Graph API时,它的工作原理是在评论中获得from字段(API 2.10版)。



但今天它返回一个空的领域。有人可能知道他们是否改变了什么?



目前的版本(2.12)也不会返回任何结果。 解决方案

您现在需要使用页面访问令牌进行此调用,而不是用户访问令牌。更多信息请点击 https://developers.facebook.com/docs /graph-api/changelog/version2.11#mapi



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


When I used facebooks Graph API til yesterday, it worked to get the "from" field in a comment (API vers. 2.10).

But today it returns an empty field. Does someone maybe knows if they changed something?

The current Version (2.12) also returns nothing.

解决方案

You need to make this call with a page access token now, not a user access token. More info here https://developers.facebook.com/docs/graph-api/changelog/version2.11#mapi

/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.

这篇关于图表API:无法从“在评论领域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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