Close

Facebook Messenger Bot Tutorial

Learn how to create a Facebook messenger bot using Python in this video tutorial series.
featured_img

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:

Video 7

Heroku deployment

This video demonstrates how to deploy your messenger bot on Heroku.

Advertisements

One thought on “Facebook Messenger Bot Tutorial

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Back to top
%d bloggers like this: