Hell guys, I am back again with something new and interesting to implement.
Whatsapp CLoud API
Using its cloud-hosted WhatsApp Business API, WhatsApp Cloud API enables businesses to send and receive messages. Users of WhatsApp Business can now deploy WhatsApp Business API without incurring the cost of hosting on their “own servers” thanks to the new Cloud API hosted on Meta’s services.
Let’s see how it can be achieved.
Step1 : create an account in Facebook meta/ or you can login with your existing Facebook account
Step 2 : Create an app in Facebook business using create app option
In app type select business
Step 3: Select setup Whatsapp API
Step 4 : In case you don’t have a business account it will ask you to create one, click on continue
Step 4: Add a phone number for your business
note : The phone number you add for business must not be already registered on Whatsapp or you can use the default test number provided.
By default you will get a test number generated for you with which you can send messages to the phone number/ mobile number you want.
Step 5: Add a phone number to send message you will receive an OTP verification, this is only with the test number, once you register your own number to the sender you can send messages to any phone number.
Step 6: In case you want to use the Facebook API to do that you can copy down the curl request generated and the Facebook temporary access token