GraphMethodException Facebook API [英] GraphMethodException Facebook API

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

问题描述

所以我正在使用来自facebook graph-api的以下端点来获取特定的帖子数据:

So I'm using the following endpoint from facebook graph-api to get a specific post data:

https://graph.facebook.com/v2.2/ {post- id}?access_token = XXX

https://graph.facebook.com/v2.2/{post-id}?access_token=XXX

但是,它给了我以下错误:

However, it gives me the following error:

{
    error: {
        message: "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
        type: "GraphMethodException",
        code: 100
    }
}

那是为什么?我正在根据他们的文档做同样的事情!

Why is that? I'm doing the samething based on their documentation!

推荐答案

您可以在此页面上查看答案-> facebook grap API的异常行为(类型": " GraphMethodException" ;," code" ;: 100)

You can view an answer on this page -> Unusual behavior of facebook grap API ("type": "GraphMethodException", "code": 100)

这不是错误,该错误表示您尝试访问的数据无法访问,不存在,已被删除,不可用,因为您没有从可以看到它的用户,等等.

This isn't a bug, the error means that the data you're trying to access is not accessible to you, does not exist, has been deleted, is not available because you haven't provided an access token from a user who can see it, etc.

有关此错误消息与Facebook页面相关的示例,请参见以下答案: https://stackoverflow.com/a/6847088 /21062 -如果该用户已阻止您,阻止您的应用,禁用其帐户或禁止所有应用访问其信息,则尝试访问用户个人资料时也是如此.

See this answer for an example of this error message in relation to Facebook pages: https://stackoverflow.com/a/6847088/21062 - the same is true when trying to access user profiles if that user has blocked you, blocked your app, disabled their account or disabled all apps from accessing their information.

这篇关于GraphMethodException Facebook API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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