This project uses the following API for getting the stats COVID19 STATS
- Flask
- ngrok: for getting public URL for your local API else deploy in servers like Heroku
- Facebook page
- Facebook developer account: for connecting backend with chatbot app
- Create app in developer portal and connect with facebook page
- Obtain app id
- Generate token for the page you have linked with the app
- Install flask and other requirements and run the app
- Use ngrok like software for creating public URL
- Add public URL as callback URL in developer portal
- Edit subscription of your added page and tick the following
- messages
- messaging_postbacks
- messaging_referrals
- The verification token for this script is "abc".This will be used for verifying the webhook
- Ensure that you have added the generation token in the step 1 in the code
ACCESS_TOKEN = "random token"
Now send a message from messenger from your facebook page and get corresponding stats