Developers

Auth

Usage

This method allows you to obtain a valid access token from the Messenger API. Generally, this method is invoked automatically for authentication purposes whenever you retrieve a client instance, so you do not need to actively invoke this method.

Mandatory parameters

This method does not have any mandatory parameters.

Optional parameters

This method does not have any optional parameters.

Response data format

When invoked, the method returns an access token for the Messenger API. For the full response model, see the Responses section of the POST /auth endpoint on the Authorization API Routes page.

Example

client.Auth().then(data => {}).catch(error => {})