Requests made to our APIs can result in error responses. This guide will help you understand what to expect in an error response.
The following represents a common error response resulting from a failed API request:
{ "result": { "error": { ... "message": "<EXCEPTION_MESSAGE>", "code": <ERROR_CODE>, "error_subcode": <ERROR_SUBCODE>, "error_user_title": "<ERROR_TITLE>", "error_user_msg": "<ERROR_MESSAGE>", "fbtrace_id": "<REQUEST_ID>" ... } }, "error_code": <ERROR_CODE>, "status": "FAILED", "exception": "<EXCEPTION_MESSAGE>", "id": "<ASYNC_SESSION_ID>" }
Name | Description |
---|---|
numeric | An error code. Same as |
numeric | An error code. Same as |
numeric | Based on the error occurred, this field would provide additional information about the error. It is NOT guaranteed that this field would always be available. If available then it is guaranteed to be unique. For details, look at the corresponding API call's error codes section. |
string | If For details, look at the corresponding API call's error codes section. |
string | If |
string | A human-readable description of the error. Same as |
string | Internal support identifier. When reporting a bug related to a Graph API call, include the |
numeric string | The ID of the async request. |
string | A human-readable description of the error. Same as |
enum string | The status of the async job. In case of an error this would always be equal to |
error_subcode
is available, then use the error_user_msg
field to get details about the error occurred.error_code
is available, then use the exception
OR message
field to get details about the error occurred.