Where can I find the official Graph API Error Code list?
I have been using the Graph API for half a year, and in the past 6 months, the error code’s format has changed twice!
The first time I saw the error code, it looks like:
{
"error": {
"message": "Error invalidating access token: The session has been invalidated because the user has changed the password.",
"type": "OAuthException",
}
}
It’s really stranger, the error message didn’t provide any error code!
And then several months later, the “expected” error code was introduced.
{
"error": {
"message": "Error invalidating access token: The session has been invalidated because the user has changed the password.",
"type": "OAuthException",
"code": 190,
}
}
But sadly, you still cannot distinguish what the error exactly is by checking the “code”, since many errors with the same “type” have the same “code”.
Just now, I found the error message contains new field:
{
"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
}
}
OK, it’s just what I need.
But where can I find the error code list?
I knew there is FQL error code list, http://fbdevwiki.com/wiki/Error_codes#FQL_Errors, but it seems out of date and does not provide any message about the “error_subcode”.
Facebook Developer Wiki (unofficial) contain not only list of FQL error codes but others too it’s somehow updated but not contain full list of possible error codes.
There is no
any official orupdated (I mean really updated) list of error codes returned by Graph API. Every list that can be found online is outdated and not help that much…There is official list describing some of API Errors and basic recovery tactics.
Also there is couple of offcial lists for specific codes:
OAuth ErrorsCredits Error codes– Facebook Credits is unsupported from Sep 2013