Skip to content

pankaj443/Facebook-Messenger-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facebook Messenger Bot

##This is a Python code that uses Flask to build a webhook for Facebook's Messenger Auto reply Bot API.

** STEPS :**

Make an account on https://developers.facebook.com/

Create a new messenger app and generate token for the same

Download and extract ngrok

Run and type ngrok.exe http port 80

You will get a https link; Copy the link: this link is your call back URL.

Setup webhook for the messenger application and select the page you want the bot to work on

Open terminal

Import Flask, os, pymessenger

Make a app on Wit.ai and train you Bot for some keywords there.

Install heruko and Git CLI

1. Type "heruko create" to create an app with random name
2. Type "heroku git:rempte -a (app name)" to create reprository
3. Deploy on Heroku to get new call back URL

Change your call back URL in webhook section and save settings.

Enter the code and Run! :)


About

ChatBot for Facebook Page!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages