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.
Properties
Section titled “Properties”error:
object
Defined in: src/types/common.ts:18
code:
number
Numeric error code.
error_data?
Section titled “error_data?”
optionalerror_data?:object
Additional structured context about the error.
error_data.details?
Section titled “error_data.details?”
optionaldetails?:string
error_data.messaging_product?
Section titled “error_data.messaging_product?”
optionalmessaging_product?:string
error_subcode?
Section titled “error_subcode?”
optionalerror_subcode?:number
More granular numeric subcode.
fbtrace_id?
Section titled “fbtrace_id?”
optionalfbtrace_id?:string
Internal trace identifier for Meta support.
message
Section titled “message”message:
string
Human-readable description of the error.
optionaltype?: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.