Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Graph API error code list

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".

like image 470
Evans Y. Avatar asked May 07 '12 08:05

Evans Y.


People also ask

Is Facebook Graph API deprecated?

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.

What data can I get from Facebook Graph API?

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.

What is oauth exception in Facebook?

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.


2 Answers

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:

  • Graph API › Errors
  • OAuth Errors
  • Credits Error codes - Facebook Credits is unsupported from Sep 2013
  • Payments Error codes
like image 68
Juicy Scripter Avatar answered Sep 22 '22 17:09

Juicy Scripter


I was looking for the same thing and I just found this list

https://developers.facebook.com/docs/reference/api/errors/

like image 23
Daniel Backman Avatar answered Sep 19 '22 17:09

Daniel Backman