Prerequisites
– Meta Developer account —
– Meta Business Portfolio —
– Meta App with WhatsApp product added — go to My Apps → Create App → Business, then click Set Up on the WhatsApp tile
Connecting the Number to Your WABA
Once your phone number is verified:
|
The number becomes linked to your WhatsApp Business Account (WABA) You gain access to key API credentials: |
· Phone Number ID
· WhatsApp Business Account ID
· Access Token — used to authorize API calls
You can now use this number to send and receive messages using the WhatsApp Cloud API or the on-premises API.
01 Access Token
Create a System User to generate a permanent token.
1. Go to Meta Business Settings → Users → System Users.
2. Click Add, set role to Admin, click Create System User.
3. Click Assign Assets → Apps. Select your app, enable Full Control, save.
4. Click Generate New Token. Select your app, set expiry to Never.
5. Enable: whatsapp_business_messaging and whatsapp_business_management.
6. Click Generate Token. Copy it — shown only once.
02 Phone Number ID
1. Go to WhatsApp → Phone Number add new Phone number
2. Copy the Phone Number ID shown on the page.
Ref: Get Started — Meta Docs
03 WhatsApp Business Account ID
1. On the same WhatsApp → Whatsapp Account page.
2. The WhatsApp Business Account ID is displayed below the Phone Number ID.
3. Copy and retain it for later use.
04 App ID & App Secret
1. developers.facebook.com/apps—open your app.
2. In the left sidebar, click App Settings → Basic.
3. The App ID is displayed at the top of the page. Copy it.
4. For the App Secret, click Show (you may need to re-enter your Facebook password). Copy it.
→ App Dashboard → App Settings → Basic → App ID / App Secret
⚠ Never expose the App Secret in client-side code or public repositories.
05 Webhook Configuration
Two values are required:
|
– Callback URL — Copy from Botsify → Deploy → WhatsApp – Verify Token — Copy from Botsify → Deploy → WhatsApp |
CONFIGURE THE WEBHOOK
1. In your app, click WhatsApp → Configuration in the left sidebar.
2. Under Webhook, click Edit.
3. Enter your Callback URL and Verify Token.
4. Click Verify and Save. Meta sends a GET request — your server must respond with the hub.challenge value.
→ App Dashboard → WhatsApp → Configuration → Webhook → Edit
⚠ The Callback URL must use HTTPS with a valid SSL certificate. HTTP will be rejected by Meta.
ENABLE EVENTS
1. After saving, click Manage next to Webhook Fields.
2. Find messages and click Subscribe. Also subscribe to message_template_status_update if needed.
3. Click Done.
⚠ Without subscribing to webhook fields, you will not receive any incoming message events.
Quick Reference
| Credential | Where to Find It |
| Access Token | Business Settings → Users → System Users → Generate New Token |
| WhatsApp Phone Number | WhatsApp → Phone Number -> Add Phone Number |
| Phone Number ID | WhatsApp → Phone Number -> Select Number |
| WhatsApp Business Account ID | WhatsApp → Whatsapp Account -> Select Account |
| App ID | App Settings → Basic — top of the page |
| App Secret | App Settings → Basic → click Show |
| Webhook Callback URL | Your server URL — entered in WhatsApp → Configuration → Webhook → Edit |
| Verify Token | Your own string — entered in WhatsApp → Configuration → Webhook → Edit |
developers.facebook.com/apps · business.facebook.com/settings
Comments
0 comments
Please sign in to leave a comment.