How to get a Facebook Messenger Token

Modified on Wed, 10 Jul at 10:14 AM

To obtain a token and set up the bot, you need to follow these steps in your Facebook account.

Step 1. Select or create a new page. For more details, see How to Create a Facebook Page.


Step 2. Create an application. For more details, see How to create an application on Facebook.


Step 3. Set up the application and get the token:

  1. From the Add products to your app section, select Messenger and click the Set up button. 

  2. Select 2. Generate access tokens and click the Connect button. 

  3. Select Opt in to current Pages only and choose your page. Click the Continue button. 

  4. Then click the Save button. 

  5. Generation and linking completed. Click the Got it button. 

  6. Refresh the page and click the Generate button. 

  7. Review, check the box I Understand, and copy the token. Then click the Done button. 

  8. Add the token in chatbots and click the Connection button. 

  9. You will receive a Callback URL (webhook_endpoint) and Verify Token (verification_token). 

  10. Next, in Facebook, select 1. Configure webhooks and click the Configure button.   

  11. Insert the Callback URL and Verify Token that you received when entering the token in the SettingsWidget window. And click the Verify and Save button. 

  12. Next, in 2. Generate access tokens, click the Add Subscription button in the Webhook Subscription column. 

  13. Select all fields and click the Confirm button. 

  14. Under the top menu, activate the Live mode. 

  15. Once the window appears, click on the Basic Settings link. 

  16. You need to add a privacy policy URL. 

    Note:

    To create your own privacy policy, go to this link. For more details, see Creating a privacy policy for Facebook Messenger.


     

  17. On this page, select the category "Messenger Bots for Business". 

  18. Now switch to the Live mode.

 

 

Also see:

How to create an FBMessenger connector

Creating a privacy policy for Facebook Messenger

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article