The app ID used by the client.
The app secret used by the client.
The underlying axios instance.
The version of the Facebook Graph API.
Associates a label to a specific PSID
Facebook page-scoped user ID of the user
ID of the custom label
Success status
Creates a label
Name of the custom label
An object includes label ID.
Creates a Persona.
Data of the new persona
Create new Webhooks subscriptions.
Success status
Gets token information.
Token information
Deletes account linking URL.
Success status
Deletes get started button.
Success status
Deletes greeting text.
Success status
Deletes ice breakers.
Success status
Deletes a Label.
ID of the custom label to delete.
Success status
Deletes one or more Messenger Profile properties. Only properties specified in the fields array will be deleted.
An array of Messenger profile properties to delete. Value must be among account_linking_url
, persistent_menu
, get_started
, greeting
, ice_breakers
and whitelisted_domains
.
Success status
Deletes persistent menu.
Deletes a persona.
ID of the persona.
Success status.
Deletes whitelisted domains.
Success status
Disables Built-in NLP.
Removes a label currently associated with a PSID
Facebook page-scoped user ID of the user
ID of the custom label
Success status
Enables Built-in NLP.
Retrieves the current value of account linking URL.
Account linking URL
Retrieves all personas associated with a page.
an array of all personas
Retrieves the labels currently associated with a PSID
Facebook page-scoped user ID of the user
Associated labels in pagination result
Retrieves the number of conversations with the Page that have been blocked.
Optional arguments.
Retrieves the current value of get started button.
Config of get started button
Retrieves the current value of greeting text.
Array of greeting configs
Retrieves the current value of ice breakers.
Array of ice breakers.
Given a user ID for a bot in Messenger, retrieve the IDs for apps owned by the same business
User IDs in pagination result
Given a user ID for a Page (associated with a bot), retrieve the IDs for other Pages owned by the same business
User IDs in pagination result
Retrieves the insights of your Facebook page.
The metrics you want to check.
Optional arguments.
Retrieves details of the label
ID of the custom label
Other optional parameters.
Fields to retrieve with its ID.
Retrieves a list of custom labels
Custom labels in pagination result
Programmatically check the feature submission status of page-level platform features
An array of all submitted feature submission requests. If no request has been submitted, the array will be empty.
Retrieves the current value of one or more Messenger Profile properties by name.
An array of Messenger profile properties to retrieve. Value must be among account_linking_url
, persistent_menu
, get_started
, greeting
, ice_breakers
and whitelisted_domains
.
The current value of the requested properties
Retrieves the number of messaging conversations on Facebook Messenger that began with people who had never messaged with your business before.
Optional arguments.
Gets page info using Graph API.
Page info
Get the current page subscription set up on your app.
The current page subscription
Retrieves the current value of persistent menu.
Array of persistent menus.
Retrieves the name and profile picture of a persona.
ID of the persona.
Data of the persona
Retrieves personas associated with a page using the cursor.
Pagination cursor.
Retrieves the number of conversations from your Page that have been reported by people for reasons such as spam, or containing inappropriate content.
Optional arguments.
Retrieves the list of apps that are Secondary Receivers for a page.
An array of secondary receivers.
Gets the current Webhook subscriptions set up on your app.
An array of subscriptions.
Gets the current thread owner.
The PSID of the message recipient.
App Id of the current thread owner.
Retrieves the number of people who have sent a message to your business, not including people who have blocked or reported your business on Messenger. (This number only includes connections made since October 2016.)
Optional arguments.
User Level Persistent Menu
Retrieves a person's profile.
Facebook page-scoped user ID.
Profile of the user.
Retrieves the current value of whitelisted domains.
Array of whitelisted domains.
Logs custom events by using the Application Activities Graph API endpoint.
Marks last message as read for the specified user.
A facebook page-scoped ID of the recipient or a recipient object
An object includes recipientId
Passes thread control from your app to another app.
The PSID of the message recipient.
The app ID of the Secondary Receiver to pass thread control to.
Metadata passed to the receiving app in the pass_thread_control
webhook event.
Success status.
Passes thread control from your app to "Page Inbox" app.
The PSID of the message recipient.
Metadata passed to the receiving app in the pass_thread_control
webhook event.
Success status.
Requests control of a specific thread from a Primary Receiver app.
The PSID of the message recipient.
Metadata passed to the primary app in the request_thread_control
webhook event.
Success status.
Sends airline boarding pass template messages to the specified user using the Send API.
A facebook page-scoped ID of the recipient or a recipient object
payload of boarding pass template.
Other optional parameters. For example, messaging types or tags.
An object includes recipientId and messageId.
Send airline check-in template messages to the specified user using the Send API.
A facebook page-scoped ID of the recipient or a recipient object
payload of check-in template.
Other optional parameters. For example, messaging types or tags.
An object includes recipientId and messageId.
Send airline itinerary template messages to the specified user using the Send API.
A facebook page-scoped ID of the recipient or a recipient object
payload of itinerary template.
Other optional parameters. For example, messaging types or tags.
An object includes recipientId and messageId.
Sends airline flight update template messages to the specified user using the Send API.
A facebook page-scoped ID of the recipient or a recipient object
payload of update template.
Other optional parameters. For example, messaging types or tags.
An object includes recipientId and messageId.
Sends attachment messages to the specified user using the Send API.
A facebook page-scoped ID of the recipient or a recipient object
The attachment of media or template to be sent.
Other optional parameters. For example, messaging types or tags.
An object includes recipientId and messageId.
Sends sounds to the specified user by uploading them or sharing a URL using the Send API.
A facebook page-scoped ID of the recipient or a recipient object
The audio to be sent.
Other optional parameters. For example, messaging types or tags.
An object includes recipientId and messageId.
Sends multiple requests in a batch.
An array of batch results
Sends button template messages to the specified user using the Send API.
A facebook page-scoped ID of the recipient or a recipient object
Array of button. Set of 1-3 buttons that appear as call-to-actions.
Other optional parameters. For example, messaging types or tags.
An object includes recipientId and messageId.
Sends files to the specified user by uploading them or sharing a URL using the Send API.
A facebook page-scoped ID of the recipient or a recipient object
The file to be sent.
Other optional parameters. For example, messaging types or tags.
An object includes recipientId and messageId.
Sends generic template messages to the specified user using the Send API.
A facebook page-scoped ID of the recipient or a recipient object
Array of element. Data for each bubble in message.
Other optional parameters, such as image_aspect_ratio
, messaging types and tags.
An object includes recipientId and messageId.
Sends images to the specified user by uploading them or sharing a URL using the Send API. Supported formats are jpg, png and gif.
A facebook page-scoped ID of the recipient or a recipient object
The image to be sent.
Other optional parameters. For example, messaging types or tags.
An object includes recipientId and messageId.
Sends media template messages to the specified user using the Send API.
A facebook page-scoped ID of the recipient or a recipient object
Array of element. Only one element is allowed.
Other optional parameters. For example, messaging types or tags.
An object includes recipientId and messageId.
Sends messages to the specified user using the Send API.
A facebook page-scoped ID of the recipient or a recipient object
A message object.
Other optional parameters. For example, messaging types or tags.
An object includes recipientId and messageId.
Sends messages to the specified user using the Send API with form-data format.
A facebook page-scoped ID of the recipient or a recipient object
A FromData object
Other optional parameters. For example, messaging types or tags.
An object includes recipientId and messageId.
A facebook page-scoped ID of the recipient or a recipient object
Other optional parameters. For example, messaging types or tags.
An object includes recipientId and messageId.
Sends request raw body using the Send API.
The raw body to be sent.
An object includes recipientId and messageId.
Sends receipt template messages to the specified user using the Send API.
A facebook page-scoped ID of the recipient or a recipient object
payload of receipt template.
Other optional parameters. For example, messaging types or tags.
An object includes recipientId and messageId.
Sends sender actions to specified user using the Send API, to let users know you are processing their requests.
A facebook page-scoped ID of the recipient or a recipient object
Message state to display to the user. One of typing_on
, typing_off
or mark_seen
Other optional parameters.
An object includes recipientId
Sends structured template messages to the specified user using the Send API.
A facebook page-scoped ID of the recipient or a recipient object
The template object.
Other optional parameters. For example, messaging types or tags.
An object includes recipientId and messageId.
Sends plain text messages to the specified user using the Send API.
A facebook page-scoped ID of the recipient or a recipient object
The text to be sent.
Other optional parameters. For example, messaging types or tags.
An object includes recipientId and messageId.
Sends videos to the specified user by uploading them or sharing a URL using the Send API.
A facebook page-scoped ID of the recipient or a recipient object
The video to be sent.
Other optional parameters. For example, messaging types or tags.
An object includes recipientId and messageId.
Sets the values of account linking URL.
Success status
Sets the values of get started button.
Payload sent back to your webhook in a messaging_postbacks
event when the 'Get Started' button is tapped.
Success status
Sets the values of greeting text.
Array of greeting.
Success status
Sets the values of ice breakers.
Array of ice breakers.
Success status
Sets the values of one or more Messenger Profile properties. Only properties set in the request body will be overwritten.
Profile object.
Success status
Sets values of NLP configs.
Configuration of NLP.
Sets the values of persistent menu.
Sets the values of whitelisted domains.
Array of whitelisted_domain.
Success status
Takes control of a specific thread from a Secondary Receiver app.
The PSID of the message recipient.
Metadata passed back to the secondary app in the take_thread_control
webhook event.
Success status.
Turns typing indicators off for the specified user.
A facebook page-scoped ID of the recipient or a recipient object
Other optional parameters.
An object includes recipientId
Turns typing indicators on for the specified user.
A facebook page-scoped ID of the recipient or a recipient object
Other optional parameters.
An object includes recipientId
Uploads specified attachment using URL address, buffer, or stream.
Must be one of image
, video
, audio
or file
.
Attachment to be uploaded.
Other optional parameters.
An object includes attachment ID
Other optional parameters.
An object includes attachment ID
Uploads file attachment using URL address, buffer, or stream.
Other optional parameters.
An object includes attachment ID
Uploads image attachment using URL address, buffer, or stream.
Other optional parameters.
An object includes attachment ID
Uploads video attachment using URL address, buffer, or stream.
Other optional parameters.
An object includes attachment ID
Generated using TypeDoc
The access token used by the client.