Meta app and webhook setup
One-time Meta developer, app and webhook configuration that a Relay deployment needs before workspaces can connect WhatsApp numbers.
Complete the sections in order. Each depends on the one before it.
Meta developer and business accounts
- Create a Meta developer account
Register at developers.facebook.com.
- Create a Meta Business account
Create it at business.facebook.com.
- Complete business verification
Required for production messaging. Verification usually takes 1 to 3 business days.
Meta app
- Create a Business-type app
Add the WhatsApp product to it.
- Add Facebook Login for Business
Embedded Signup, which workspaces use to connect numbers, runs on Facebook Login for Business.
- Copy the app credentials into the backend configuration
Meta value Backend setting App ID META_APP_IDApp secret META_APP_SECRETEmbedded Signup configuration ID META_EMBEDDED_SIGNUP_CONFIG_IDStore the app secret as a secret; never commit it or expose it to the browser.
- Add the OAuth redirect URIs
In Facebook Login for Business›Settings, add both URLs to Valid OAuth Redirect URIs:
Valid OAuth Redirect URIshttps://<your-app-domain>/onboarding/whatsapp/callback https://<your-app-domain>/onboarding - Allow your domain for the JavaScript SDK
In the same panel, set Allowed Domains for the JavaScript SDK to the bare domain, for example
www.bm-relay.com, with nohttps://and no trailing slash. - Add the app domain
In App settings›Basic›App domains, add the bare domain, for example
bm-relay.com. Then complete the Data Use Checkup again, or Meta keeps Login paused.
https://, a path, or a trailing slash. Correct it and retry.Webhook
- Set the callback URLCallback URL
https://<your-api-domain>/api/v1/webhooks/whatsapp - Set the verify token
Use the same value in Meta and in the backend setting
META_WEBHOOK_VERIFY_TOKEN. - Subscribe to webhook fields, then verify and saveWebhook fields
messages message_template_status_update account_update phone_number_name_update business_capability_update
Go-live checklist
- A production number is registered and verified, and its display name is approved.
- At least one message template is approved, so campaigns can start conversations.
- The webhook has received a test event from Meta.
- Onboarding reaches the Live stage for a test workspace.
When the checklist is complete, workspaces can connect numbers from the onboarding page.