WhatsApp installation and post-install setup

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.

1. Install the package

Version 3.0 is the only release (current build: package version 0.4.0, September 2026).

Install for Admins Only (you can extend access with the permission set). The package installs under namespace b3w.

2. Enter the WhatsApp access token (External Credential)

The package ships a WhatsApp External Credential; you add your token to it.

  1. Setup → Named Credentials → External Credentials → WhatsApp.
  2. Under Principals, edit WhatsAppPrincipal.
  3. Add an authentication parameter named Access_Token and paste your Meta System User access token.
  4. Save. Grant the running users (or the WhatsApp Admin permission set) access to this principal (Permission Set → External Credential Principal Access), or callouts will fail with an authorization error.

Both Named Credentials (WhatsApp → graph.facebook.com, WhatsApp_Media → lookaside.fbsbx.com) already reference this credential, so the token is entered once and reused.

3. Create a configuration record per phone number

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.

4. Assign the permission set

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.

5. Expose the inbound webhook

Meta calls Salesforce at /services/apexrest/whatsapp/webhook. That endpoint must be reachable from the internet with guest access to the REST resource:

  1. Set up (or reuse) a Salesforce Site or Experience Cloud site.
  2. Give the site's guest user access to the WhatsAppWebhookHandler Apex class.
  3. Note the site's base URL — the full webhook URL is 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.

6. Place the component (optional)

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.

7. Page layouts and tab

Post-install checklist

Verifying it works