Skip to content

Files

Latest commit

 

History

History
 
 

Covid India Stats App

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

COVID19 STATS APP FOR INDIAN STATES

This project uses the following API for getting the stats COVID19 STATS

Requirments

  • 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

How to use this code ?

  • 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

messenger-1

messenger-2

messenger-3

Author

Devika S G