# Connect the chatbot to Facebook Messenger and Instagram

> Set up a Meta app so the chatbot answers Messenger chats, Page comments and Instagram direct messages, and choose its menu and replies.

Source: https://www.wpbot.pro/help/chatbot-messenger-and-instagram/  
Section: ChatBot › Channels  
Updated: 2026-11-26

The **Messenger and Instagram** module lets your chatbot answer on your Facebook Page and your Instagram business account.

Switch it on in **ChatBot → Modules → Messenger and Instagram**. The settings then appear in **ChatBot → Channels → Messenger** and **ChatBot → Channels → Instagram**.

## Before you start

- A **Facebook Page**  you manage.
- For Instagram: an **Instagram business account**  connected to that Facebook Page.
- A **Meta developer account**  at developers.facebook.com, to create an app.
- Your site on https.

## Step 1: Create the Meta app

1. At developers.facebook.com, go to **My Apps → Create App**  and follow the steps.
2. In **Settings → Basic** , add your app domain, privacy policy and terms of service, and save.
3. Add the products **Webhooks**  and **Messenger** , and for Instagram also **Instagram Graph API** .

## Step 2: Messenger settings

In **ChatBot → Channels → Messenger → Settings**:

| Setting | Where it comes from |
| --- | --- |
| **Enable Facebook Bot** | Turn on to let the chatbot answer on Messenger. |
| **Facebook App ID** and **Facebook App Secret** | Your app's dashboard. |
| **User Access Token** | Your app's dashboard. |
| **Page Access Token** | The Messenger settings of your app, **Access Tokens** section. |
| **Facebook Verify Token** | Any random string you choose. Enter the same one in the app's webhook settings. |
| **Facebook OAuth Redirect URIs** | Copy it into **Facebook Login → Settings → Valid OAuth Redirect URIs** in the app. |
| **Callback URL** | Copy it into the **Callback URL** of the app's **Webhooks** settings. |

Then:

- **Default Instruction Message**  and **Default No Match Reply:**  what the bot says first, and when nothing matches. By default visitors type **Start**  for the main menu.
- **Remove Image URL from Reply**  and **Remove youtube URL from Reply:**  cleaner text replies.
- **Handover Protocol:**  let a person take over in the Page Inbox, with a command for customer service with live agents.

**Manage FB Pages** lists your Facebook pages and sets replies to comments (**Reply anytime** or **Reply if** a comment matches). **FB Menu Setup** chooses the persistent menu items: predefined intents, custom intents and conversational forms.

## Step 3: Instagram settings

In **ChatBot → Channels → Instagram → Settings**:

- **Enable Instagram Bot** .
- **Access Token:**  the Page Access Token from your Meta app.
- **Callback URL**  and **Instagram Verify Token:**  copy them into the app's **Webhooks**  settings for Instagram.
- **Default Instruction Message** , **Default No Match Reply** , **Remove Image URL from Reply** , **Remove youtube URL from Reply**  and **Disable Site Search for Instagram** .

**IG Menu Setup** chooses the menu items.

Step-by-step help with Meta's screens: [Instagram Chatbot Addon Setup](https://www.wpbot.pro/instagram-chatbot-addon-setup/).

## Test it

Send a message to your Page or Instagram account from another account and type **Start**. Check the reply, then look for the conversation in **ChatBot → Sessions**.

Note

While your Meta app is in development mode, only accounts with a role in the app get replies. Test with such an account, and switch the app to live mode when you are ready.

## Availability

In **Master** only.
