This is the admin / system-integrator setup guide. For getting the Meta ids and tokens referenced below, see the client-facing Meta account and tokens guide.
Version 3.0 is the only release (current build: package version 0.4.0, September 2026).
test.salesforce.com instead of login.salesforce.com.Install for Admins Only (you can extend access with the permission set). The
package installs under namespace b3w.
The package ships a WhatsApp External Credential; you add your token to it.
Access_Token and paste your Meta
System User access token.Both Named Credentials (WhatsApp → graph.facebook.com, WhatsApp_Media →
lookaside.fbsbx.com) already reference this credential, so the token is entered
once and reused.
Create one WhatsApp Configuration Custom Metadata record for each WhatsApp phone number you send from.
Setup → Custom Metadata Types → WhatsApp Configuration → Manage Records → New:
| Field | Value |
|---|---|
| Label / WhatsApp Configuration Name | Any name (this DeveloperName is the "Configuration Name" in Flow). |
| WhatsApp Business Account Id | Your WABA id. |
| Phone Number Id | The phone-number id (not the display number). |
| Display Phone Number | e.g. +1 555 000 0000. |
| Named Credential | WhatsApp. |
| API Version | e.g. v21.0. |
| Webhook Verify Token | Any secret string — you'll enter the same value in Meta. |
| Is Default | Check on exactly one record. |
The default record is used when no Configuration Name is supplied and for inbound webhook verification.
Assign WhatsApp Admin to every user who will send messages or use the component: Setup → Permission Sets → WhatsApp Admin → Manage Assignments. It grants Apex, object/field and tab access.
Meta calls Salesforce at /services/apexrest/whatsapp/webhook. That endpoint
must be reachable from the internet with guest access to the REST resource:
WhatsAppWebhookHandler Apex class.https://<your-site-domain>/services/apexrest/whatsapp/webhook.Then, in Meta (WhatsApp → Configuration → Webhooks):
Meta immediately calls the URL with a verification handshake; the handler echoes the challenge when the token matches, and Meta shows the webhook as verified.
To let users chat from a Contact, add the Whatsapp Messager component to the Contact record page in Lightning App Builder. See the component guide.
WhatsApp_Configuration__mdt layout is packaged for editing configuration
records.b3w).Access_Token set on the WhatsApp External Credential principal, and access granted.WhatsApp Configuration record per number, exactly one marked default.WhatsApp Admin permission set assigned.WhatsAppWebhookHandler, verified in Meta, subscribed to messages.Whatsapp_Message__c record should be
created with Status = Sent.Error_Message__c and in
Log_Entry__c (category WhatsApp).