Learn how to create a facebook messenger bot using Python using our video tutorial series.
Video 1
Creating a facebook app
A facebook App allows you to retrieve and post data on facebook programmatically via Facebook API.
Facebook API provides the interface and methods to interact with the Facebook App.
This video demonstrates how to create a facebook app.
Video 2
Setting up project
This video demonstrates how to setup the projects folder.
- You need to have Python 3 or Python 2 installed. (Python 3 is preferred)
- Install virtualenv
pip install virtualenv
- Create a virtual environment
- Install:
- flask
- requests
- pymessenger
Video 3
Setting up webhook
This video demonstrates how to setup webhook (callback URL) for your messenger bot.
We use ngrok for exposing local server to internet.
Video 4
Receiving messages
In this video, we write a function to receive messages from FB page as POST HTTP Requests.
Video 5
Create a basic echo bot
This video demonstrates how to add replying capability to our messenger bot.
pymessenger is used for sending replies.
Video 6
Heroku setup
This video demonstrates how to set up your project folder for Heroku deployment.
You need to install:
- Heroku CLI
- Git CLI
- gunicorn
pip install gunicorn
Video 7
Heroku deployment
This video demonstrates how to deploy your messenger bot on Heroku.