Chatilo
USDPrices shown in US dollars Sign in Start free trial

Find your Phone number ID and the other Meta values

Step by step at Meta: create the app, add your number, and copy the Phone number ID, WhatsApp Business Account ID, a permanent access token and the app secret.

Last updated

On this page
  1. The four values at a glance
  2. What you need first
  3. Step 1: Create a Meta app
  4. Step 2: Add WhatsApp to the app
  5. Step 3: Add and verify your phone number
  6. Step 4: Copy the Phone number ID and the Business Account ID
  7. Step 5: Create a permanent access token
  8. Step 6: Copy the app secret
  9. Step 7: Enter the four values in Chatilo
  10. Before you message real customers
  11. Common problems

Before Chatilo can send and receive on your real WhatsApp number, you copy four values from Meta. This page shows where each one is and how to get it for the first time.

Meta renames and moves its screens from time to time. The steps below describe what to look for; if a menu has a slightly different name on your account, look for the value's own label, which stays the same: Phone number ID, WhatsApp Business Account ID, App secret.

The four values at a glance

ValueWhat it isWhere it is at Meta
Phone number IDMeta's own ID for your number. About 15 digits. It is not the phone number.Your app → WhatsApp → API Setup, under the number you send from
WhatsApp Business Account IDThe ID of the account your number belongs to. Digits only.Same page, next to the Phone number ID
Access tokenThe key Chatilo uses to send as you. A long string.Business settings → Users → System users (permanent), or the API Setup page (temporary)
App secretLets Chatilo confirm that incoming messages really come from Meta.Your app → App settings → Basic

What you need first

  • A Facebook account you can sign in with.
  • A Meta business account for your company (Meta also calls it a business portfolio, formerly Business Manager). If you have none, Meta offers to create one during the steps below.
  • A phone number that can receive an SMS or a voice call for verification, and that is not currently registered in the WhatsApp or WhatsApp Business phone app. A number in use on the phone app has to be removed from it or migrated first; Meta's screens explain the options.
  • About 30 minutes.

Step 1: Create a Meta app

  1. Go to developers.facebook.com and sign in.
  2. Open My Apps and choose Create App.
  3. When asked what the app is for, choose the option for business use (often shown as Other, then Business).
  4. Give the app a name, for example your company name followed by "WhatsApp", and choose your business account when asked.
  5. Create the app.

    You land on the app's dashboard.

You only do this once. The same app can hold more than one number.

Step 2: Add WhatsApp to the app

  1. On the app's dashboard, find WhatsApp in the list of products and choose Set up.
  2. If asked, choose or create the WhatsApp Business Account the number will belong to.

    WhatsApp now appears in the app's left menu.

Step 3: Add and verify your phone number

  1. In the left menu, open WhatsApp → API Setup.
  2. Under the sending number, choose Add phone number.

    Meta first shows a test number of its own. That test number can only message a few phones you list, so add your real number.

  3. Enter your business's display name and category, then the phone number.
  4. Choose SMS or a voice call, and enter the code Meta sends.

    The number now appears in the list under From.

Meta reviews the display name. Until it is approved, some sending can be limited; you can still finish connecting.

Step 4: Copy the Phone number ID and the Business Account ID

  1. Stay on WhatsApp → API Setup.
  2. Under From, select your own number (not Meta's test number).
  3. Just below it, copy Phone number ID.
  4. Next to it, copy WhatsApp Business Account ID.

Check what you copied:

  • Both are digits only, with no spaces, plus sign or country code.
  • If what you copied starts with your country code and looks like your phone number, you copied the number, not its ID.

Step 5: Create a permanent access token

The API Setup page shows a temporary token. It stops working after about a day, and your connection in Chatilo stops with it. Use it only for a quick test. For everyday use, make a permanent one:

  1. Go to business.facebook.com, open Settings (Business settings) for your business account.
  2. Under Users, open System users.
  3. Choose Add, give the system user a name such as chatilo, and give it the Admin role.
  4. Select the new system user and choose Add assets (or Assign assets):

    1. Under Apps, select your app and switch on full control.
    2. Under WhatsApp accounts, select your WhatsApp Business Account and switch on full control.
  5. Choose Generate new token.
  6. Select your app.
  7. For the token's expiry, choose Never if offered.
  8. Tick these two permissions: whatsapp_business_messaging and whatsapp_business_management.
  9. Generate the token and copy it straight away.

    Meta shows it only once. If you lose it, generate a new one.

Step 6: Copy the app secret

  1. Back at developers.facebook.com, open your app.
  2. In the left menu, open App settings → Basic.
  3. Next to App secret, choose Show. Meta asks for your Facebook password.
  4. Copy the secret.

App ID, App secret, Threads app ID, Threads app secret: which one?

The App settings → Basic page shows several values close together. Chatilo needs only one of them.

On Meta's pageWhat it isNeeded in Chatilo?
App IDThe public number that identifies your Meta app. It is not secret; it appears in web addresses.No. There is no field for it.
App secretThe private key of the same app. Meta signs every incoming message with it, and Chatilo checks that signature.Yes. Paste it into App secret.
Threads app IDA separate ID Meta creates in case you build something for Threads, its text-posting app.No. Ignore it.
Threads app secretThe private key for that Threads use.No. Ignore it. Pasting it instead of the App secret makes incoming messages fail.

The same page also has fields such as Display name, Contact email, Privacy policy URL and App domains. Those are details about your app for Meta. Fill in the privacy policy address before you switch the app to Live; Chatilo asks for none of them.

Step 7: Enter the four values in Chatilo

You now have everything. Continue with Connect a real WhatsApp number, from "Part 2: Enter the values". It also covers the last step at Meta: pasting Chatilo's callback URL and verify token under WhatsApp → Configuration and subscribing to messages.

Before you message real customers

A few things at Meta decide whether messages actually go out. They are separate from Chatilo:

  • Payment method. Meta charges you directly for the messages you send, at its own rates. Add a card under your WhatsApp account's payment settings, or business-initiated messages can be refused.
  • App mode. Switch your app from Development to Live (a toggle at the top of the app dashboard). Meta asks for a privacy policy web address first, under App settings → Basic.
  • Business verification. An unverified business has low daily sending limits. Verifying your business in Business settings raises them over time.
  • Templates. To write to someone first, or more than 24 hours after their last message, you need an approved template. See What templates are.

Common problems

I can't find "Phone number ID"

It is only shown on WhatsApp → API Setup inside the app, under the From number. If the left menu has no WhatsApp entry, the product hasn't been added to this app yet: go back to Step 2. If you see only Meta's test number under From, add your own number first (Step 3).

I have several numbers. Which ID is which?

Each number has its own Phone number ID. Choose the number under From and the ID shown below changes with it. Numbers in the same WhatsApp Business Account share one Business Account ID.

Chatilo says "WhatsApp rejected these details"

The usual causes:

  • The token is the temporary one and has expired.
  • The system user was not given your WhatsApp account as an asset in Step 5, so the token cannot see the number.
  • One of the two permissions was not ticked when the token was generated.
  • The Phone number ID and the token belong to different WhatsApp Business Accounts.

Fix the cause at Meta, then enter the values again.

My connection worked yesterday and stopped today

You almost certainly used the temporary token. Create a permanent one (Step 5), then disconnect and reconnect the number in Chatilo with it. See Test or disconnect a WhatsApp number.

Messages send but replies never arrive

The webhook is missing or the app secret is wrong. See Webhook not arriving.

I reset my app secret at Meta

Chatilo still has the old one, so it refuses incoming messages. Disconnect the number in Chatilo and connect it again with the new secret, then paste the new callback URL and verify token into Meta.

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