json Facebook 错误代码列表

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4348018/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 17:41:07  来源:igfitidea点击:

List of Facebook error codes

jsonfacebookfacebook-graph-api

提问by Alexis Dufrenoy

I'm looking for a list of all Facebook can return when you try to fetch infos using Graph API. Can anyone help?

我正在寻找当您尝试使用 Graph API 获取信息时 Facebook 可以返回的所有列表。任何人都可以帮忙吗?

Facebook returns a 400 HTTP error, and a JSON content like:

Facebook 返回 400 HTTP 错误和 JSON 内容,例如:

{
   "error": {
      "type": "OAuthException",
      "message": "Invalid OAuth access token signature."
   }
}

I'm searching the different returns of the same kind it is possible to get.

我正在寻找可能获得的相同类型的不同回报。

采纳答案by Daniel Backman

There seems to be a list now for the errors.

现在似乎有一个错误列表。

I posted answer for the same question here: Facebook Graph API error code list

我在这里发布了相同问题的答案:Facebook Graph API 错误代码列表

(I found the list here https://developers.facebook.com/docs/graph-api/using-graph-api/error-handling)

(我在这里找到了列表https://developers.facebook.com/docs/graph-api/using-graph-api/error-handling

回答by Amith

Facebook used to have this published somewhere, but for whatever reason it was removed. But you can find the full list here: http://www.takwing.idv.hk/tech/fb_dev/faq/general/gen_10.html

Facebook 曾经在某处发布过此内容,但无论出于何种原因,它都被删除了。但是你可以在这里找到完整的列表:http: //www.takwing.idv.hk/tech/fb_dev/faq/general/gen_10.html

回答by Tim Tisdall

In case Takwing's copy ever comes down, here's another copy: http://fbdevwiki.com/wiki/Error_codes

如果 Takwing 的副本出现故障,这里是另一个副本:http://fbdevwiki.com/wiki/Error_codes

These codes were primarily for the REST API, but they do also come up with the Graph API. Some of the Graph API calls have underlying FQL calls that return the FQL error codes. And the direct FQL queries are still part of the currently accepted API.

这些代码主要用于 REST API,但它们也提供了 Graph API。一些图形 API 调用具有返回 FQL 错误代码的底层 FQL 调用。直接 FQL 查询仍然是当前接受的 API 的一部分。

Update: I'm trying to keep this list up-to-date. Please feel free to make changes as you encounter new errors.

更新:我正在努力使此列表保持最新。当您遇到新的错误时,请随时进行更改。

回答by phwd

I am trying to keep an updated list of error codes based on previous outdated information.

我正在尝试根据以前的过时信息保留更新的错误代码列表。

You can find the repo here http://github.com/phwd/fbecand it has been updated with Test User and Credit Error codes from the Facebook Documentation.

你可以在http://github.com/phwd/fbec找到这个 repo ,它已经更新了 Facebook 文档中的测试用户和信用错误代码。

Currently looking for the constant name for "Error Code 2500" and some error descriptions may have changed. I hope to keep on top of this.

当前正在查找“错误代码 2500”的常量名称,并且某些错误描述可能已更改。我希望保持在这一点上。

回答by Alexis Dufrenoy

There is an official error code page, now:

有一个官方的错误代码页,现在:

https://developers.facebook.com/docs/marketing-api/error-reference/

https://developers.facebook.com/docs/marketing-api/error-reference/

It still doesn't look comprehensive...

看起来还是不够全面...