Skip to content

GraphErrorEnvelope

Defined in: src/types/common.ts:17

Error envelope returned by the Meta Graph API on failures.

See the Graph API error reference. All nested fields are optional except message and code, which Meta consistently provides.

error: object

Defined in: src/types/common.ts:18

code: number

Numeric error code.

optional error_data?: object

Additional structured context about the error.

optional details?: string

optional messaging_product?: string

optional error_subcode?: number

More granular numeric subcode.

optional fbtrace_id?: string

Internal trace identifier for Meta support.

message: string

Human-readable description of the error.

optional type?: string

Error category, e.g. OAuthException.

Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.