WhatsApp Cloud API Webhooks Sample Coded using Flask
- Heyoo – Unofficial python wrapper to WhatsApp Cloud API.
WhatsApp Cloud API Webhooks
Deploy the sample app on Heroku with this button:
After Clicking the deploy button you will be required to login to Heroku to continue specifying the app name and region, then Click Deploy App button.
Clicking the Deploy button will start building your app now sit back and relax while Heroku platform builds and deploy your application automatically. You can even see the progress of the build.
When Heroku has completed deploying your application sucessfully, you will be presented with two buttons at the button, Click the one that says Manage App
Go to the Settings > Reveal Config Vars, for the key TOKEN just input any random string of characters in this field no worries, and as for APP_SECRET here input you application Secter you can get this from the Facebook Developer’s Dashboard.
When you have finished, click Open app at the top right corner of you dashboard to go to you application, you will presented with simple status that “Hello, It Works”
Now your Callback url will be located at
/whatsapiat the end of you apllication url, example
Set up your client’s [subscription] using your
https://<your-subdomain>.herokuapp.com/whatsapias the callback URL. It is recommended that you set a
APP_SECRETconfig var as part of the set up of your Heroku app to secure requests. If you choose not to set a config var, then you will need to set a verify token of ‘token’ when configuring the callback URL.
All the contributions are valued and welcomed to make this package better for everyone. You can contribute on better documentations, code refactoring and optimaztion or anything you think will add value.
- WhatsApp Cloud API official documentation
- Heyoo WhatsApp API Python Wrapper
- Create a Facebook App ID App Secret