GitXplorerGitXplorer
m

fb-bot

public
48 stars
27 forks
1 issues

Commits

List of commits on branch master.
Unverified
fd64fdfd6b52fa648a817480021cb837f085ca33

Merge pull request #1 from danstewart/master

mmasnun committed 8 years ago
Unverified
dfde73b21b7e13ee846b10e8ae9b46ad2b81a4b2

Add token verification

committed 8 years ago
Unverified
2933b5c55ebae077b865990616bcc3b839de5043

Fixed url routing bug

mmasnun committed 8 years ago
Unverified
3fc22147ee6fd4508c03ddd8554856d0ef5e33c7

Added Readme

mmasnun committed 8 years ago
Unverified
7a0d66e99d38f01d597e8e3c4c21000a0590441f

First commit

mmasnun committed 8 years ago

README

The README file for this repository.

Facebook Messenger EchoBot Example

Install Dependencies

Install flask & requests using pip:

	pip install Flask
	pip install requests

Install ngrok from - https://ngrok.com/.

Run Server & Tunnel Connection

Run the dev server using:

python server.py

Use ngrok to tunnel the connection.

ngrok http 5000

You shall see the url for your local server. Something like: https://6cecffb8.ngrok.io.

Setup Facebook App & Access Token

  • Create a Facebook App.
  • Add the Messenger Product.
  • Enable webhooks. Use the above URL as the callback webhook URL.
  • Edit server.py and update the VERIFY_TOKEN with the token you set.
  • Once the callback is verified, subscribe the app to one of your pages.
  • Also generate a page access token for that page.
  • Edit server.py and update the ACCESS_TOKEN with the new token we got.