---
url: >-
  https://docs.corbitaltech.dev/products/whatsmark-saas/tenant/facebook-messenger-settings.md
description: >-
  Configure Facebook Messenger integration in WhatsMark. Set up webhooks,
  connect your Meta App, generate access tokens, and link your Facebook Page.
---

# Facebook Messenger Settings

Configure your Facebook Messenger integration from **Application Settings > Facebook Messenger** in the WhatsMark tenant panel.

::: tip Don't have a Meta App yet?
If you haven't created a Meta Developer App, follow the [Create Meta Developer Account & App](../integrations/facebook-messenger/create-meta-app.md) guide first, then return here to complete the setup.
:::

![Facebook Messenger Settings](../images/facebook-messenger/fb-messenger-settings.png)

## Step 1: Enable Facebook Messenger

1. Navigate to **Application Settings** from the sidebar
2. Click on **Facebook Messenger**
3. Toggle **Enable Facebook Messenger** to **ON**

## Step 2: Configure Webhook in Meta App

Once enabled, WhatsMark will display your **Webhook Configuration Details**:

| Field | Description |
|---|---|
| **Webhook Callback URL** | Your unique webhook URL for receiving Messenger events |
| **Verify Token** | A token used by Meta to verify your webhook endpoint |

1. Click **Copy** next to the **Webhook Callback URL** to copy it
2. Click **Copy** next to the **Verify Token** to copy it (or click **Generate New Token** to create a new one)

![Webhook Configuration Details](../images/facebook-messenger/fb-webhook-config.png)

### Add Webhook in Meta Developer Dashboard

1. Open your Meta App at [developers.facebook.com](https://developers.facebook.com)
2. In the left sidebar, navigate to **Messenger > Messenger API Settings**
3. Under **1. Configure webhooks**, paste the following:
   * **Callback URL** - Paste the Webhook Callback URL copied from WhatsMark
   * **Verify token** - Paste the Verify Token copied from WhatsMark
4. Click **Verify and save**

### Subscribe to Webhook Fields

![Webhook Subscription Fields](../images/facebook-messenger/meta-webhook-fields.png)

After verifying the webhook, you need to subscribe to webhook fields to receive events. The required fields are:

| Field | Description |
|---|---|
| `messages` | Receive incoming messages |
| `messaging_postbacks` | Receive postback events from buttons |
| `messaging_optins` | Receive opt-in events |
| `messaging_optouts` | Receive opt-out events |
| `message_reads` | Receive message read receipts |
| `message_echoes` | Receive echo of messages sent by your page |
| `message_deliveries` | Receive message delivery confirmations |
| `messaging_referrals` | Receive referral events |

## Step 3: Generate Access Token & Connect Page

1. In your Meta App dashboard, go to **Messenger > Messenger API Settings**
2. Under **2. Generate access tokens**, find your Facebook Page and click **Add Page** if not already added
3. Select the Page you want to connect with WhatsMark
4. Set up the **Webhook Subscription** fields for the page: `messages`, `messaging_postbacks`, `messaging_optins`, `messaging_optouts`, `message_reads`, `message_echoes`, etc.
5. Click the **Generate** button next to your page

![Generate Access Token](../images/facebook-messenger/meta-generate-token.png)

### Copy the Token

1. A **Token Generation** modal will appear with your page access token
2. Check **"I understand"** to acknowledge the security notice
3. Click **Copy** to copy the token

::: warning
This token is shown only once. Keep it safe. If lost, you will need to generate a new one.
:::

![Token Generation Modal](../images/facebook-messenger/meta-token-modal.png)

## Step 4: Enter Credentials in WhatsMark

Go back to your WhatsMark **Application Settings > Facebook Messenger** page and fill in the following:

| Field | Where to find it |
|---|---|
| **Access Token** | The token you copied from the Token Generation modal in Step 3 |
| **App ID** | Found at the top of your Meta App dashboard |
| **Page ID** | The Page ID shown under your page name in Messenger API Settings |

![Messenger Access Token & Page ID](../images/facebook-messenger/fb-credentials.png)

### How to Find Your Page ID

1. In your Meta App, navigate to **Messenger > API Setup**
2. The **Page ID** is displayed under your page name in the **Generate access tokens** section

## Step 5: Save Changes

1. After entering the **Access Token**, **App ID**, and **Page ID**, click **Save Changes**
2. Your Facebook Messenger integration is now active

::: info
Make sure your Meta App is set to **Live** mode (not Development) for production use. You can toggle this from the top bar of your Meta App dashboard.
:::

## What Happens After Configuration

Once the settings are configured correctly, you will start receiving new messages from your business Facebook Page's Messenger — the page for which you configured the Page ID and Access Token.

You can then:

* **Receive messages** from your Facebook Page Messenger directly within WhatsMark
* **Reply to messages** from within the WhatsMark chat interface

::: warning Version 2.2.0 - Limited Functionality
Currently, only **message sending and receiving** functionality is available for Facebook Messenger in WhatsMark SaaS. Additional features such as bot automation for Messenger will be available in future updates.
:::
