Setup your Facebook application to use WhatsApp API in #salesforce

on

|

views

and

comments

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๐Ÿ˜Š.

Aman Tiwari
Aman Tiwarihttps://pantherschools.com/
Lifetime Learner, philanthropist & hardworker, who believes in converting dreams into reality๐Ÿ˜‡ 3X Salesforce Certified Developer & Admin|| 1.5X Trailhead Ranger|| Blogger, Speaker, and Instructor.
Share this

Leave a review

Excellent

SUBSCRIBE-US

Book a 1:1 Call

Must-read

How to start your AI Journey?

Table of Contents Introduction Are you tired of the same old world? Do you dream of painting landscapes with your code, composing symphonies with data, or...

The Secret Weapon: Prompt Engineering: ๐Ÿช„

Table of Contents Introduction Crafting the perfect prompt is like whispering secret instructions to your AI muse. But there's no one-size-fits-all approach! Exploring different types of...

How to Singup for your own Production org?

Let's see how we can have our salesforce enterprise Salesforce Org for a 30-day Trial and use it as a Production environment. With the...

Recent articles

More like this

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here

5/5

Stuck in coding limbo?

Our courses unlock your tech potential