Home / Docs / Facebook Messenger
Setup Guide · Facebook Messenger

Facebook Messenger setup

A complete walkthrough to connect your Facebook Page's Messenger inbox to MsgHub via the Meta Graph API. Customer DMs to your Page route into your unified inbox, the AI replies automatically, and you handle escalations from one place across WhatsApp / Instagram / Messenger.

~30 min Beginner-friendly No code required Last updated: 2026-05-14

Overview

Facebook Messenger remains a high-intent channel for customers who came in via Facebook Ads, browsed your Page, or used the "Message" button on your Marketplace listing. The Messenger Platform API lets MsgHub read those DMs, send replies, and route them to AI or human agents like any other channel.

Five parts to setup:

  1. Page side — confirm you have a Facebook Page and admin access.
  2. Meta App — add Messenger product, get Page ID, generate Page Access Token.
  3. MsgHub — paste credentials.
  4. Webhook — point Meta at MsgHub and subscribe to message events.
  5. Test & Live — verify with role-based testers, then submit for App Review for public launch.

If you've already done WhatsApp or Instagram setup, you can reuse the same Meta App, same App Secret and same System User. Just add the Messenger product to the existing app.

Prerequisites

Part 1 · Set up the Page side

1

Confirm Page admin and messaging are enabled

  1. Open your Page in Meta Business Suite.
  2. Settings → Page roles → ensure your account is listed as Admin. Editor/Moderator roles won't generate tokens with messaging permissions.
  3. Page settings → Messaging → ensure Allow people to contact my Page privately by showing the Message button is ON.

Part 2 · Configure Meta App for Messenger

2

Add the Messenger product to your Meta App

  1. Open your Meta App at developers.facebook.com/apps.
  2. From the dashboard, click Add Product.
  3. Find Messenger → click Set up.
  4. You'll see a new "Messenger" item in the left sidebar with sub-sections for Settings, Webhooks, Templates, Roles.
3

Find your Facebook Page ID

Three ways:

  • From the Page itself: Page → About → scroll to Page transparency → numeric Page ID.
  • From Business Manager: Settings → Pages → click your Page → ID is shown in the header.
  • From your Page URL: if the URL is facebook.com/123456789, the number is your Page ID. If it's a vanity URL like facebook.com/AcmeRetail, use one of the methods above.

Save the numeric ID — looks like 123456789012345.

4

Generate a Page Access Token

Page Access Tokens authorise sending and receiving messages on behalf of your Page.

  1. In your Meta App: left sidebar → MessengerSettings (or API Setup depending on dashboard version).
  2. Under Access Tokens, click Add or Remove Pages → select your Page → grant the permissions Meta requests.
  3. Your Page appears in the access token list. Click Generate Token.
  4. Copy immediately and store securely — looks like EAAGm....

Page Access Tokens are long-lived when generated from the App dashboard while logged in as a Page admin — they don't expire on a typical timeline. Tokens generated via Graph API Explorer expire in 60 days unless extended.

Also grab your App Secret: left sidebar → SettingsBasicApp Secret → Show. Same App Secret used for WhatsApp and Instagram in this app.

You should now have three pieces of information collected:

CredentialSource
Facebook Page IDPage About or Business Manager → Pages
Page Access TokenMeta App → Messenger → Settings → Generate Token
App SecretMeta App → Settings → Basic

Part 3 · Connect Messenger to MsgHub

5

Paste credentials into MsgHub

  1. Login to https://app.msghub.info.
  2. Click Settings at the bottom of the sidebar.
  3. Scroll to the WhatsApp Configuration section — inside it, find the Facebook Messenger sub-section.
  4. Paste the credentials below and choose a Webhook Verify Token (any random string).
  5. Above, in the Meta App Credentials sub-section, ensure Meta App ID + Meta App Secret are set. These are shared across all Meta channels (WA / IG / FB).
  6. Click Save.
MsgHub fieldSectionPaste from
Meta App IDMeta App CredentialsMeta App → Settings → Basic
Meta App SecretMeta App CredentialsMeta App → Settings → Basic (used for webhook HMAC)
Facebook Page IDFacebook MessengerPage numeric ID
Page Access TokenFacebook MessengerFrom Meta App Messenger Settings (Step 4)
Webhook Verify TokenFacebook MessengerYou make this up

Part 4 · Point Meta's webhook at MsgHub

6

Copy your Messenger webhook URL

The Your Webhook URL field in the Facebook Messenger sub-section is read-only and auto-generated:

URL https://app.msghub.info/api/webhooks/messenger/{your-tenant-id}
7

Configure the webhook in Meta

  1. Meta App dashboard → MessengerWebhooks (or "Configuration" in some dashboard versions).
  2. Click Add Callback URL.
  3. Paste the Callback URL from MsgHub.
  4. Paste the Verify Token (must exactly match what you saved in MsgHub).
  5. Click Verify and Save. Meta hits your URL with a challenge — MsgHub responds, green tick appears.
8

Subscribe to message webhook fields

Saving the URL alone isn't enough. Subscribe to events:

  • messages — inbound customer DMs (the main one)
  • messaging_postbacks — button taps in your Messenger UI
  • message_deliveries — delivery receipts (optional)
  • message_reads — read receipts (optional)

Then subscribe your Page to the app: still on the Webhooks page, scroll to Page subscription → pick your Page → Subscribe. This step is easy to miss.

Two separate subscriptions, both required: (1) webhook fields (events MsgHub receives), and (2) Page subscription (the Page this webhook is bound to). If only (1) is done you get a green Verify tick but no events fire.

Part 5 · Send your first test message

9

Test as an admin or role-tester

Until your Meta App passes App Review, only people with a role in the App (Admin, Developer, Tester) can DM your Page through the API. Random Facebook users can DM but the events won't fire for your webhook.

From a Facebook account that is an Admin or Tester on your Meta App:

  1. Open Messenger or Facebook.com.
  2. Search for your Page → click Message.
  3. Send "hi".

The message should appear in MsgHub Inbox → Facebook Messenger within seconds. A new contact is created automatically.

To add testers: Meta App → RolesRolesAdd Testers. Tester accepts the invite from their Facebook notifications.

10

Test outbound

Reply from MsgHub Inbox. Within the 24-hour customer service window, free-form replies are allowed. The message arrives on the tester's Messenger within seconds.

Going live · App Review

Role-based testing is fine for piloting. To accept DMs from the general public, your Meta App needs App Review for the pages_messaging permission (and any others you use).

What Meta reviews

Submitting

  1. Meta App dashboard → App ReviewPermissions and Features.
  2. For pages_messaging (and pages_manage_metadata if you used it), click Request.
  3. Fill the rationale, upload demo video, link policies.
  4. Submit. Approval typically 3–7 business days.

If you've already passed App Review for WhatsApp or Instagram on the same app, adding Messenger only needs review of the additional permission — usually approved within 24 hours since your app is already a known good actor.

24-hour customer service window & message tags

Same model as WhatsApp and Instagram. Once a customer messages your Page, you have 24 hours to reply with any free-form message. After that:

Generic marketing pushes after 24 hours are not allowed. Meta's policy is strict here; mass-violators get permanent restriction.

Troubleshooting

"Webhook verification failed" in Meta

Page subscription is the missing piece

Inbound DMs don't appear in MsgHub

"Invalid OAuth access token" when sending

"This user can't receive a message from this app" error on outbound

FAQ

Do I need a Facebook Page if I only want Instagram and WhatsApp?

For WhatsApp: no. For Instagram: yes (Instagram messaging requires a connected Page even if you never post on Facebook). For Messenger: obviously yes. The Page can be empty — only its existence and admin connection matter.

Can I share one Meta App across WhatsApp, Instagram, and Messenger?

Yes, and we recommend it. One Meta App holds all three channel products. App Secret is shared, webhook signature verification works the same way, and App Review only needs to happen once.

What's the difference between Page Access Token and System User token?

Page tokens are tied to a specific Page and don't expire when generated from the App dashboard. System User tokens are tied to an app-level user and used for WhatsApp/Instagram. For Messenger, the Page token is the typical choice.

Can I respond to comments on Page posts via MsgHub?

Not via Messenger setup alone — that's a separate Page API permission. Comment responses are on our roadmap but not currently exposed via MsgHub.

What's the throughput limit on Messenger?

Meta caps at ~250 messages/second per Page at standard rate; can be raised on request. For India business volumes, you won't hit this.

Can the AI handle Messenger DMs?

Yes. The AI handles Messenger DMs through the same chatbot flow as your other channels — see AI Training for how to wire the chatbot flow and knowledge base.

Does Messenger support audio, video, location messages?

Yes — Messenger supports text, image, audio, video, file, location, and template messages. MsgHub surfaces all of these in the unified inbox. Outbound, you can reply with text, image, document.

What's next

Connect Instagram DMs
Same Meta App, same App Secret — Instagram is the natural pairing with Messenger.
Train AI on Messenger replies
One knowledge base, every channel. AI replies to Messenger DMs the same way it does to WhatsApp.
App Review prep walk-through
We'll help you record the demo video and write the use-case rationale.