In the previous blog, I have given you hint on the agenda of the โSalesforce + WhatsApp Integrationโ series. Now, itโs time to get our hands dirty with the practical implementation. So, without any adieu letโs get startedโฆโฆโฆโฆ.
Setting up Facebook Account for โSalesforce + WhatsApp
Integrationโ
We all know that WhatsApp is an internal product of Facebook. So, to make things fall in right place, the first thing to be accomplished is to setup our Facebook Account. The very first step is to click on this link Facebook .
The next step is to Click on โGet Startedโ Tab which will allow you to setup Facebook Account.
For this, there are two ways. The first way is to use an existing Facebook account and the other way is to Create a new Facebook Account. The ideal way is to use your existing account which appears like this
Click on the โContinueโ button. It will redirect you to next page where you will see the Email linked to your Facebook Account. All you need to do is accept the Terms & Conditions and click on โConfirm Emailโ button. After completing this step, the next step is to โSelect the role that describes youโ. For this series, we need to select โDeveloper Roleโ. Once you have selected Role, click on โComplete Registrationโ.
Note:- If you have already logged in through your Facebook Account, you will directly be redirected to โMy Appsโ Page. Please refer below image
Creating โWhatsAppโ App
Once you complete the above-mentioned steps, you will be redirected to โCreate Appโ Page which appears as shown below
The next step is to click on โCreate Appโ button. Once you click on Create App, it will ask you to select the โApp Typeโ. For this series, we need to select โBusiness Appโ. Click on the โBusinessโ option and then click on Next button.
Now, you have selected the Business App and so the next step is to provide unique name to your App. For the demo purpose, Iโll name it as โSalesforce+WPโ. The next thing is โApp Contact Emailโ which is used to contact you about potential policy violations, app restrictions or steps to recover the app if itโs been deleted or compromised. For demo purpose, I have entered patherschools@gmail.com. The next option to select Business Account is optional. Since we donโt want this App to be related to any Business Account, we will leave this option and proceed ahead by clicking on โCreate Appโ button.
For security reasons, it might prompt you to enter Password (your Facebook account password).
Once the Password is entered, you will be redirected to application page which confirms that application has been created.
Add Products to your App
In this step, we need to setup โWhatsAppโ for our newly created application. For this you need to scroll down to the bottom of the page and look for โWhatAppโ. Then Click on โSet upโ button on the WhatsApp.
Once you click on โSet upโ button, you will land to a new page where you will be asked to create or select a Meta Business Account. Keep the by default selected option and then click on โContinueโ.
After this, you will be redirected to developer console of your WhatsApp where you will find your Temporary Access Token which you can use to make API calls. Below that you will see an option to โSend and receive messagesโ which consist of multiple steps that allows you to configure your WhatsApp for sending and receiving messages. Letโs understand the important steps under this option.
Step 1: – Select Phone numbers
This step allows you to configure your send & receive message phone number. โFromโ section allows you to send free messages from the โTest numberโ that has been provided by Facebook.
Note: – You can use your own phone number which is subject to limits and pricing. For more information click here
Under โToโ section, you will find that there isnโt any phone number available. For setting up this section, select the โManage Phone Number Listโ option that appears in the dropdown.
This allows you to add up to 5 phone numbers to receive free test messages. For learning purpose, add one phone number. ย Select your country of residence and then enter the phone number to which you want to send the Test messages. After this, a verification code will be sent to the mentioned WhatsApp number. Enter the number as shown below to complete the verification.
After the verification is successful, you will see that your WhatsApp number will appear in โToโ section as shown below
Step 2: – Send Messages with the API
In this step, you will find the auto-generated command. All you need to do is, click on โSend Messageโ button to test your send message functionality.
Once you click on โSend Messageโ button, a test message will be sent to the WhatsApp number mentioned in the โToโ section. The message will appear as shown below.
Congratulations!! Itโs time to pat your back as you have completed the โBasic Setup for Salesforce + WhatsApp Integrationโ. Want to know more about next steps? Subscribe to our Newsletter & YouTube Channel and you will soon receive the nextย updates.
The Salesforce CLI is not just a tool; itโs the cornerstone of development on the Salesforce Platform. Itโs your go-to for building, testing, deploying, and more. As one of the most important development tools in our ecosystem
Table of Contents
What is Apex Log Analyzer?
Apex Log Analyzer, a tool designed with Salesforce developers in mind, is here to simplify and accelerate your...
Introduction
Hey Everyone,
Welcome to my podcast, the first-ever podcast in India for Salesforce professionals.
Achievement
We are happy to announce that we have been selected as Top...
[…] time to get back to the part that we left out in the previous blog. In the previous blog, we have completed […]