Before installing the WhatsApp Business package
Creating Meta Developer App & Register
WhatsApp Business Number

- Register and create a meta developer application using Facebook loginΒ – https://developers.facebook.com/
- Click Get Started and enter the details



- Click Create App button

- Select Other and click Next

- Choose App type as Business and click Next

- Enter the app Name and email and click create app

- A Pop up box asks for a password and click Submit
- Click Setup in WhatsApp section

- Go to App Settings β Basic
- Enter the privacy policy URL in the respective field.
- Choose the Category of the business and Click Save Changes

-
Now Click Start Verification

-
It will redirect you to another page. Click Start or βContinueβ if you had previously started the process

-
ClickΒ βGet StartedβΒ in the pop-up

-
Select your country and then enter relevant business details and documents. ClickΒ Next.

- Choose Email to receive your verification code. Click Next

- Upload relevant documents asked by Meta to confirm authenticity of your business. Click Next until reaching the end

Changing App Mode To Live:
-
Change the App Mode from Development toΒ Live.Β Β

-
App Mode is changed to Live

-
Click on the App Roles in the left panel of the Meta App page.

-
Click Roles

-
Click on the Business Manager Account created and linked with that.

- Click on the All Tools tab from the left panel on the Business Setting page.
- Select Business Settings.

- Select the System Users in the left panel
- Click Add button to Add new user other than system admin
- Click on Add to add and give admin access
- If you face an error in creating the System User,
Please follow this link:
-
Add Assets for the user created

- SelectΒ AppsΒ
- Choose the app that we have created
- Turn On Manage app under Full control and ClickΒ Save ChangesΒ button

-
ClickΒ Done

-
Click on Generate new token

-
Select the app for which we want to generate a token and click on generate token.

-
Choose the Β token expirationΒ asΒ Never

-
CheckΒ Business Management, Whatsapp business Messaging, Whatsapp business ManagementΒ Check box underΒ Available permissions

-
ClickΒ Generate TokenΒ Button

-
Permanent Access token is generated. Copy this access token for future use. This access token will be used in Custom metadata in Salesforce

- Creating WebHook
- Developers.facebook.com-> Your App -> WhatsApp -> API Setup -> Configure Webhooks.

-
Click the βConfigure Webhooksβ hyperlink and then click βEditβ

-
Enter the FB Verify token and Site URL, then click Verify and Save
Adding Business Number to Meta :
-
Whatsapp β API Setup -> Add Phone Number

-
Enter the details Like business name, website and select the country and ClickΒ Next

-
Select the appropriate category for your business and clickΒ Next

- Select country code and enter the phone number
- A verification code will be sent

- Go to Whatsapp β API Setup
- Once the number is verified, it can be used to send messages

-
Copy the Phone number Id & Whatsapp business Account Id which will be used Β in Custom metadata of Salesforce

-
Next is adding the payment method

-
Click Add Payment Method. It will redirect you to the below page

-
You can click on a specific record to view/edit it.

-
After generating the access token, click βConfigurationβ under βWhatsApp.β You will be redirected to the following page:

-
Now Click βManageβ and ensure that βmessages, message_template_Quality_updateβ are ticked, but do not untick any other option.

Creating Templates in Meta :
- Click Quickstart under WhatsApp
- Click on Message Templates

- Click Create Template button

- Choose the category of the template and give name and select a language in which the template should be available. Click Continue

- You need to enter the content of the template
- You can see the preview on the right side. Click submit

- The template has been created. It needs to be verified by Meta. Once the template is verified status changes to Active.

Guidelines for Message templates :
Template Record Creation in Salesforce :
- To Create WA Templates
- Search templatesΒ

- Click New

- Enter the template name which you created in Meta
- WA Number – WhatsApp number with country extension (Eg : 919876543210)
- Supported Objects – Choose the object type
Note :
- If the template contains any image in header, Give the image URL in Media URL field
- If the template is a dynamic template,
- Β Field API Names of field values to be sent as parameter should be given in Fields As Parameters field.
- Give the default values for the template in Default Values For Parameters field.
