这是什么意思“error_subcode”:33在Facebook响应错误?

时间:2017-11-22 14:38:09

标签: facebook-graph-api facebook-marketing-api

有人知道在Facebook响应错误中error_subcode:33是什么意思吗?我知道这与任务许可相关,但我想100%肯定。

我们收到以下错误:

{"error":{"message":"Unsupported get request. Object with ID 'XXXX'
does not exist, cannot be loaded due to missing permissions, or does
not support this operation. Please read the Graph API documentation at
https://developers.facebook.com/docs/graph-api","type":"GraphMethodException","code":100,"error_subcode":33,"fbtrace_id":"BRwGjA9kkKU"}}

但是在有关Graph API https://developers.facebook.com/docs/graph-api/using-graph-api/的Facebook API文档中,我找不到值为33的error_subcode

我希望我可以依赖此子代码来验证我没有从Facebook API获取资源的权限,因为我不想依赖于错误消息。

2 个答案:

答案 0 :(得分:2)

以下是类似问题的Facebook错误门户网站链接: https://developers.facebook.com/bugs/316526372199563/

它的要点是:

  

这些用户使用他们的电话号码注册Facebook / Messenger,这些用户尚未被API查询。这是API的路线图,请关注我们的更新日志,以便在将来的版本中生效:https://developers.facebook.com/docs/graph-api/changelog

答案 1 :(得分:0)

由于似乎有多种可能的原因,我无法提供确定的解决方案。但是,我今天遇到了这个问题,希望提供这个可能的原因。

如果您在测试Facebook TEST应用程序时遇到此错误,则可能与您处于TEST应用程序模式这一事实有关。

就我而言,我从事了一段时间的Facebook登录工作。当我的合伙人加入开发时,他无法登录自己的开发环境。他收到了您提到的“我”端点的错误:

{
    "error": {
        "message": "Unsupported get request. Object with ID 'me' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
        "type": "GraphMethodException",
        "code": 100,
        "error_subcode": 33,
        "fbtrace_id": "____"
    }
}

这实际上已经在我们的生产环境中进行了部署和测试,我们都可以正常注册和登录

我将他添加为Facebook TEST应用程序的管理员后,问题得以解决,他可以注册并登录自己的开发环境。

因此,您可能要检查这是否适用于您。一种简单的检查方法是在开发环境中使用真实应用程序的密钥。

相关问题