How to set up Facebook Messenger channel

How to set up Facebook Messenger channel

You can configure your bot to communicate with people through Facebook Messenger.

Users will access your bot from a Facebook Page. To connect the bot, you'll enable Facebook Messenger on the Facebook Page and then connect the bot to the Page.

Get the Page ID

  1. Sign in to your Meta for Developers account.
  2. Go to the Page on which users will access your bot. If you don't have one yet, go to Pages and select Create new Page.
  3. Open the Page's About page, then copy and save the Page ID.

Create your app

  1. On the Select an app type page, select Business and then Next.
  2. On the Provide basic information page, enter a name for your app and select Create app.
    • If prompted, enter your password and select Submit to create your app.
    • After your app is created, the site goes to a page for your app.
  3. Expand Settings and select Basic.
    1. Copy and save the App ID and App Secret.
  4. Now under Settings, select Advanced.
    1. In the resulting pane, scroll down to the Security settings, and enable Allow API Access to app settings.
    2. Select Save Changes.

Enable Messenger

  1. Select Dashboard.
  2. In the resulting pane, scroll down to the Messenger tile and select Set Up.
  3. The site adds Messenger settings to your app and display the settings page.

Add pages and generate tokens

  1. Scroll down to the Access Tokens section and select Add or Remove Pages.
    1. When prompted for the identity to associate with Messenger, either continue with your current account or sign in to another.
    2. When prompted for the Pages you want to use with your app, select the pages and then select Next.
    3. If prompted to submit the request for Login Review, review the information and select Done.
    4. On success, the site displays a success pages. Select OK to continue.
  2. The Page you added now appears in the Pages list.
  3. Select Generate token for the Page.
    1. The site displays security information and gives you a chance to copy the token.
    2. Read and acknowledge the warning.
    3. Copy the token and select Done.
You now have your app information and a token for the next step. Leave the Facebook setting steps pending. You'll update them later.

Fill the information in Facebook settings page

Make your Facebook app public

Submit for review

Facebook requires a Privacy Policy URL and Terms of Service URL on its basic app settings page. The Code of Conduct page contains third party resource links to help create a privacy policy. The Terms of Use page contains sample terms to help create an appropriate Terms of Service document.

After the bot is finished, Facebook has its own review process for apps that are published to Messenger. The bot will be tested to ensure it's compliant with Facebook's Platform Policies.

Make the app public and publish the Page


Until an app is published, it's in Development Mode. Plugin and API functionality will only work for admins, developers, and testers.

After the review is successful, in the App Dashboard under App Review, set the app to Public. Ensure that the Facebook Page associated with this bot is published. Status appears in Pages settings.

Set the API version

If you receive a notification from Facebook about deprecation of a certain version of the Graph API:
  1. Go to the app your created for your bot.
  2. Under Settings, select Advanced.
  3. Select Upgrade API version, then switch Upgrade All Calls to the latest version.

Test your bot in Facebook

You can now test whether your bot is connected to Facebook correctly by sending a message via the Facebook Page you associated with your new Facebook app.
  1. Go to your Facebook Page.
  2. Select Add a button.
  3. On the Edit action button page, select Send message.
    1. On the Frequently asked questions page, review the default question and answer, then select Save.
    2. The site replaces the previous Edit action button with a new Edit Send message button.
  4. Select Edit Send message then select Test button.
    1. The site displays your Page with the sample question as a suggested action.
    2. Enter any message you want to test the connection to your bot.

    • Related Articles

    • How to add the Telegram channel

      Select the bot you built on platform for which you wish to configure Telegram, and go to Settings -> Configuration Enable the Telegram channel if currently disabled Click settings Start a new conversation with 'BotFather' in Telegram. ...
    • How to connect the Slack channel

      Select the bot you built on platform for which you wish to configure Slack, and go to Settings -> Configuration Enable the Slack channel if currently disabled Create a Slack application here <>. After creation, some ...
    • What are channels, and which channels are included vs premium

      Blits can be connected to multiple channels and messaging services of your choice, out of the box. 1) Standard versus Premium channels Please note some channels are premium and may require upgrading your subscription. Premium channels will appear ...
    • Set Object

      With the Set Object block, users are able to set values to keys of a persistent object.
    • Set Variable

      The set variable block defines specific input from the user of a flow into a predefined variables for further usage in the flow.