Chatilo
USDPrices shown in US dollars Sign in Start free trial

Find the Meta values for Instagram and Messenger

Where to find the Facebook Page ID, the Instagram account ID, a long-lived Page access token and the App secret, step by step.

Last updated

On this page
  1. What you need for each channel
  2. What you need first
  3. Step 1: Add Messenger or Instagram to your Meta app
  4. Step 2: Copy the Facebook Page ID
  5. Step 3: Copy the Instagram account ID (Instagram only)
  6. Step 4: Create a long-lived Page access token
  7. Step 5: Copy the App secret
  8. Step 6: Connect in Chatilo
  9. Before real customers can write to you
  10. Common problems

To connect Instagram or Messenger, Chatilo asks for values that come from Meta. This page shows where each one is. When you have them, continue with Connect Instagram or Connect Messenger.

Meta renames and moves its screens from time to time. If a menu has a slightly different name on your account, look for the value's own label.

What you need for each channel

ValueMessengerInstagram
Facebook Page IDYesYes
Instagram account IDNoYes
Page access tokenYesYes
App secretYesYes

What you need first

  • A Facebook Page for your business, and a Facebook account that has full control of it.
  • For Instagram: an Instagram professional account (Business or Creator) that is linked to that Facebook Page. You link it on the Page, under its settings for linked accounts.
  • A Meta business account (business portfolio) that owns the Page.
  • A Meta app. If you already made one for WhatsApp, use the same app. If not, follow Step 1 of Find your Phone number ID and the other Meta values.

Step 1: Add Messenger or Instagram to your Meta app

  1. Go to developers.facebook.com, open My Apps and select your app.
  2. In the list of products, find Messenger (for Messenger) or Instagram (for Instagram) and choose Set up.

    The product now appears in the app's left menu.

  3. In the product's settings, connect your Facebook Page when asked.

Step 2: Copy the Facebook Page ID

  1. In your Meta app, open the Messenger (or Instagram) settings page where your Page is listed.
  2. Copy the number shown under the Page's name.

You can also find it on Facebook itself: open your Page, go to About, then Page transparency. The Page ID is listed there.

The Page ID is digits only. It is not the Page's name or its web address.

Step 3: Copy the Instagram account ID (Instagram only)

  1. In your Meta app, open the Instagram settings page.
  2. Find your Instagram account in the list. The number next to it is the Instagram account ID (Meta sometimes labels it Instagram business account ID).

This is not your Instagram username. It is a long number, usually starting with 1784.

If your Instagram account is not listed, it is not linked to the Facebook Page yet, or it is still a personal account. Fix that in Instagram and on the Page first.

Step 4: Create a long-lived Page access token

A token made with Meta's quick "Generate token" button can expire, and your connection stops with it. A token from a system user does not expire.

  1. Go to business.facebook.com and open Settings (Business settings).
  2. Under Users, open System users. Use the one you made for WhatsApp, or choose Add and create one with the Admin role.
  3. Select the system user and choose Add assets (or Assign assets):

    1. Under Pages, select your Page and switch on full control.
    2. Under Apps, select your app and switch on full control.
    3. For Instagram, under Instagram accounts, select your account as well.
  4. Choose Generate new token and select your app.
  5. For the token's expiry, choose Never if offered.
  6. Tick the permissions for the channel:

    • Messenger: pages_messaging, pages_manage_metadata, pages_show_list.
    • Instagram: the three above, plus instagram_basic and instagram_manage_messages.
  7. Generate the token and copy it straight away. Meta shows it only once.

Step 5: Copy the App secret

  1. In your Meta app, open App settings → Basic.
  2. Next to App secret, choose Show and enter your Facebook password.
  3. Copy it.

That page also shows App ID, Threads app ID and Threads app secret. Chatilo uses none of those three. Only the App secret goes into Chatilo.

Step 6: Connect in Chatilo

Continue with Connect Instagram or Connect Messenger. After you click Connect, Chatilo shows a Callback URL and a Verify token to paste into your Meta app's webhook settings.

Before real customers can write to you

While your Meta app is in Development mode, only people who have a role on the app (admins, developers, testers) can exchange messages with it. For everyone else:

  1. Ask Meta for advanced access to the messaging permissions you ticked in Step 4. You do this in the app under App Review → Permissions and features. Meta reviews the request and may ask for a short screen recording.
  2. Complete business verification if Meta asks for it.
  3. Switch the app to Live.

Until then, test with your own account by adding it to the app under App roles.

Common problems

"Meta rejected these details: …"

The usual causes:

  • The token has expired. Make one from a system user (Step 4).
  • The system user was not given the Page (or the Instagram account) as an asset.
  • A permission was not ticked when the token was generated.
  • The Page ID belongs to a different Page than the token.
  • For Instagram: the Instagram account is not linked to that Page.

Messages from my own account arrive, but not from customers

Your Meta app is still in Development mode or the permissions only have standard access. See "Before real customers can write to you" above.

I pasted the App ID instead of the App secret

Chatilo either refuses the value as too short, or the account connects but incoming messages are refused because the signature cannot be checked. Disconnect the account and connect it again with the App secret. See Pause or disconnect a channel.

The badge stays on "Webhook not set up"

See Webhook not arriving.

Cookies on this site

We use the cookies needed to run the site and keep you signed in. With your OK we also remember choices you make here, such as the currency for prices. We don’t use advertising or tracking cookies. Cookie policy