Skip to content

Facebook Messenger Settings ​

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

Don't have a Meta App yet?

If you haven't created a Meta Developer App, follow the Create Meta Developer Account & App guide first, then return here to complete the setup.

Facebook Messenger Settings

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:

FieldDescription
Webhook Callback URLYour unique webhook URL for receiving Messenger events
Verify TokenA 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

Add Webhook in Meta Developer Dashboard ​

  1. Open your Meta App at 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

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

FieldDescription
messagesReceive incoming messages
messaging_postbacksReceive postback events from buttons
messaging_optinsReceive opt-in events
messaging_optoutsReceive opt-out events
message_readsReceive message read receipts
message_echoesReceive echo of messages sent by your page
message_deliveriesReceive message delivery confirmations
messaging_referralsReceive 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

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

Step 4: Enter Credentials in WhatsMark ​

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

FieldWhere to find it
Access TokenThe token you copied from the Token Generation modal in Step 3
App IDFound at the top of your Meta App dashboard
Page IDThe Page ID shown under your page name in Messenger API Settings

Messenger Access Token & Page ID

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

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.

Β© 2024 - Corbital Technologies. All rights reserved.