Follow the steps given below to setup Whatsapp cloud API to configure your own sender’s number for whatsapp login
- Go to this link https://developers.facebook.com/ and click on the My Apps button on the top right corner. (You will need to log into your Facebook account)
- Now, click on the Create App button.
- You will be taken to the next page i.e., Select an app type page.
- Choose the Business type under Select an app type and click on the Next button.
- You will be taken to the next page i.e., Provided basic information page.
- Enter the Display name of the app, it can be anything that you want.
- If you have a Business Account you can select your business account otherwise you can leave as it is.
- Now, click on the Create app button.
- A pop-up appears asking for your facebook account password. Enter the password and click on the Submit button.
- On the next page, scroll down to the bottom of the page and in the WhatsApp block click on Set up button. A pop-up to Create a WhatsApp Business Profile appears.
- Enter the WhatsApp Business profile display name.
- Select the Timezone of your country.
- Select Category and enter Business description otherwise you can leave it blank.
- Click on the Next button.
- Now, a Business information pop-up appears on your screen.
- Enter your Legal Business name.
- Select the Country and enter the Business Website address.
- Click on the Next button.
- Click on the Continue button.
- Now, you can test the working of Whatsapp API. A temporary access token and a test phone number id is provided to you.
- Click on the Manage phone number list.
- Select your Country code and you have to add a Phone number to which you want to send a text message.
- Click on the Next button.
- We have to verify that phone number with an OTP received on that number to receive text messages on WhatsApp.
- Click on the Next button.
- Now, you can click on the Send message button provided in the Step 2 section.
- You will receive the test message on the WhatsApp phone number provided by you.
- Now to add your sender’s phone number, click on the Add phone number button.
- Select Country code and add your phone number from which you want to receive a text message. It will give an Error message if your number is registered to an existing whatsapp account so you can’t use the same number.
- So in this case you will have to set up a new mobile number and you will have to use that new mobile number with the WhatsApp API.
- Enter the new mobile number and click on the Next button.
- Sms messages with an OTP will be sent on this number to verify the mobile number.
- Enter the Verification code and click on the Next button.
- If you want to create a message template click here.
- These are all the template messages.
- Now, click on the Create Message Template button on the top right corner.
- Select template Category, Name your message template and select Languages.
- Click on the Continue button.
- On the next page, fill the Message Content.
- Select the type of Header and enter the Header name.
- Enter the Text for your message in the language that you have selected. You have to keep only one variable(use {{1}} as a variable) i.e., for OTP only. Please refer to the screenshot provided.
- Click on the Submit button.
- A pop-up Confirm Language appears. Then, click on the Confirm button.
- Your message template is successfully submitted. Click on the Done button.
- Your message template has gone for a review to Facebook and you can see the status as Pending review. It usually takes about 30 to 40 sec for the approval.
- Once your message template is approved by Facebook you can use this template name to send OTP to the users on their WhatsApp number.
- To register your sender’s number, you need to configure the Register Sender’s Number form provided in the OTP Over Whatsapp plugin. Copy URL, Authorization Token provided in the step 2 of WhatsApp API configuration page.
- You fill the respective fields like Message Template Name(the name of the OTP template that you have created to send to users) and Message Template Language code (eg. for English (US) language code is en_US).
- Click on the Save Settings button.
If you are looking for anything which you cannot find, please drop us an email on 2fasupport@xecurify.com