> For the complete documentation index, see [llms.txt](https://mobsted-2.gitbook.io/knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mobsted-2.gitbook.io/knowledge-base/messengers/intro-placeholder/set_up_facebook_bot.md).

# Set up Facebook bot

&#x20;![](https://www.gravatar.com/avatar/a166acc121d90e6fbcd7b69973b6ef1d?d=mm\&s=150) Updated 2 weeks ago by Mobsted Support L

You must have a Facebook account to be able to create and manage bots on Facebook.

1\) Go to <https://developers.facebook.com/>;

2\) Log in, create an account if necessary;

3\) Click the "My Apps" button;![](https://slavdemo-admin.mobsted.com/front/assets/images/bot-instructions/facebook/step3_en_us.png)

4\) Click "Add New App";![](https://slavdemo-admin.mobsted.com/front/assets/images/bot-instructions/facebook/step4_en_us.png)

5\) Fill in the form;![](https://slavdemo-admin.mobsted.com/front/assets/images/bot-instructions/facebook/step5_en_us.png)

6\) Complete Security check;![](https://slavdemo-admin.mobsted.com/front/assets/images/bot-instructions/facebook/step6_en_us.png)

7\) Set up Messenger to create the bot;![](https://slavdemo-admin.mobsted.com/front/assets/images/bot-instructions/facebook/step7.1_en_us.png)![](https://slavdemo-admin.mobsted.com/front/assets/images/bot-instructions/facebook/step7.2_en_us.png)

8\) In the "Settings" section, generate token for your bot's page;![](https://slavdemo-admin.mobsted.com/front/assets/images/bot-instructions/facebook/step8_en_us.png)

9\) Log in for your bot page access to be able to generate a token;![](https://slavdemo-admin.mobsted.com/front/assets/images/bot-instructions/facebook/step9.1_en_us.png)![](https://slavdemo-admin.mobsted.com/front/assets/images/bot-instructions/facebook/step9.2_en_us.png)![](https://slavdemo-admin.mobsted.com/front/assets/images/bot-instructions/facebook/step9.3_13_en_us.png)

10\) Go to the Facebook bot setup page on the Mobsted platform;

11\) Fill in the "Bot Name" and "Token" fields (enter the generated token for your bot's page);

12\) Copy Webhook address to the clipboard;

13\) In the "Webhooks" section of the Messenger settings console, click "Configure Webhooks";![](https://slavdemo-admin.mobsted.com/front/assets/images/bot-instructions/facebook/step9.3_13_en_us.png)

14\) Enter the Webhook address in the "Callback URL" field;![](https://slavdemo-admin.mobsted.com/front/assets/images/bot-instructions/facebook/step14-16_20_en_us.png)

15\) Enter a confirmation token for Webhook (use arbitrary text) to the "Confirm token" field, copy the entered data to the clipboard;

16\) In the "Subscription fields" field, select the Webhook events that you want to transfer. To begin with, we recommend that you select at least the parameters for messages and messaging\_postbacks;

17\) Go to the Facebook bot setup page in the Mobsted platform;

18\) In the "Response code" field, enter a confirmation token for Webhook (paste from the buffer);

19\) Click "Save"

20\) Go back to the Facebook page and click the "Verify and Save" button;![](https://slavdemo-admin.mobsted.com/front/assets/images/bot-instructions/facebook/step14-16_20_en_us.png)

21\) In the "Webhook" section of the Messenger settings console, click the "Select page" drop-down menu and select the Facebook page for which you created the access token. This will make your application to receive Webhook events from the Page;

22\) Click the Subscribe button next to this menu.

Your Facebook bot is ready to use.
