Messenger BOT using Flask API
summary
Shows how to build a working Facebook Messenger webhook with a Flask app that handles the required GET verification and POST message callbacks, uses a generated page access token and subscription to a page, and debugs locally with an ngrok public URL. Implements simple handlers with the requests library to echo text (and demo a weather lookup), fixes 405 errors by adding both methods, and demonstrates token, verification and webhook JSON fields end to end.
AI-written summary · about
chapters (13)
- 0:00Building Messenger BOT with Flask
- 3:24Facebook Developer account setup
- 7:05Flask project setup
- 11:03Webhook configuration
- 14:36Deploying Flask app
- 20:06Debugging with ngrok
- 23:36Handling messages in Flask
- 27:22Authenticating with Facebook
- 31:00Messenger messaging
- 36:42Simple reply function
- 45:25Basic BOT functionality
- 49:10Refining BOT responses
- 51:11Publishing Messenger app








