我在哪里可以找到Graph API官方错误代码列表?
我已经使用Graph API半年了,在过去的6个月中,错误代码的格式已经更改了两次!
我第一次看到错误代码时,它是这样的:
{
"error": {
"message": "Error invalidating access token: The session has been invalidated because the user has changed the password.",
"type": "OAuthException",
}
}
这真是奇怪,错误信息没有提供任何错误代码!
几个月后,"预期的"错误代码被引入。
{
"error": {
"message": "Error invalidating access token: The session has been invalidated because the user has changed the password.",
"type": "OAuthException",
"code": 190,
}
}
但是可悲的是,仅仅通过检查“代码”,仍然无法确定错误的具体原因,因为许多同一“类型”的错误具有相同的“代码”。
刚刚发现错误消息中包含新的字段:
{
"error": {
"message": "Error invalidating access token: The session has been invalidated because the user has changed the password.",
"type": "OAuthException",
"code": 190,
"error_subcode": 460
}
}
好的,这正是我需要的。
但是我在哪里能找到错误代码列表呢?我知道有FQL错误代码列表,http://fbdevwiki.com/wiki/Error_codes#FQL_Errors,但它看起来已经过时,而且没有提供任何关于“error_subcode”的消息。