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".
API Version Deprecations: As part of Facebook's Graph API and Marketing API, please note the upcoming deprecations: August 3, 2021: Graph API v3. 3 will be deprecated and removed from the platform. August 25, 2021 Marketing API v9.
The Graph API is the primary way to get data into and out of the Facebook platform. It's an HTTP-based API that apps can use to programmatically query data, post new stories, manage ads, upload photos, and perform a wide variety of other tasks.
OAuthException: If you receive an OAuthException error, it means that Edgar doesn't have the correct permissions to access your Facebook accounts right now. The password may have been changed on Facebook or Facebook may have reset your security session.
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 or updated (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:
I was looking for the same thing and I just found this list
https://developers.facebook.com/docs/reference/api/errors/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With