FQL 请求从星期三开始就失败了。我不知道为什么 FQL 应该只在四月底被弃用。
基本上,这是周三之前有效的请求类型:
https://graph.facebook.com/89240001803405/fql?access_token=<access_code>&q=select+is_published%2C+talking_about_count%2C+access_token%2C+description%2C+emails%2C+fan_count%2C+general_info%2C+location%2C+page_url%2C+pic_square%2C+username%2C+page_id%2Cname+from+page+WHERE+page_id+IN+%28SELECT+page_id+FROM+page_admin+where+uid+%3D+89240001803405%29
这是当前的响应:
{
"error": {
"message": "(#100) Tried accessing nonexisting field (fql) on node type (User)",
"type": "OAuthException",
"code": 100
}
}
在迁移非 FQL 之前知道如何解决这个问题吗?
谢谢
最佳答案
据我所知,您在 fql
部分之前的用户 ID 是错误的。如果这以前有效,那么我想那是偶然的。
通过 API 端点的 FQL 调用应采用 https://graph.facebook.com/fql?q=…
形式——标识符 fql
作为第一个路径段,后跟参数,例如用于查询的 q
、访问 token 和其他可能合适的参数。
首先指定用户 ID 没有意义,因为您要选择的数据是在查询本身中定义的。
关于facebook - 尝试访问节点类型(用户)上的不存在的字段(fql),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29173590/