我在哪里可以找到官方图形API错误代码列表?Facebook图形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”的消息。
的[Facebook的错误代码列表(可能的复制http://stackoverflow.com/questions/4348018/list错误代码) – Flimzy