Need help with fb-messenger-bot?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

hartleybrody
427 Stars 509 Forks 34 Commits 3 Opened issues

Description

A starter Facebook Messenger Bot built in Python

Services available

!
?

Need anything else?

Contributors list

# 52,336
Python
faceboo...
faceboo...
28 commits
# 247,113
Python
faceboo...
faceboo...
1 commit
# 61,205
Python
faceboo...
React
Three.j...
1 commit

Facebook Messenger Bot

This is a simple python template that uses Flask to build a webhook for Facebook's Messenger Bot API.

Read more in my tutorial that uses this repository.

New: Check out my Facebook Messenger Bot Course. It walks you through the process of getting this bot hosted on heroku step-by-step, and also unlocks all the content that's hidden in this repo's branches.

"Callback verification failed"

Facebook Error

The #1 error that gets reported in issues is that facebook returns an error message (like above) when trying to add the heroku endpoint to your facebook chat application.

Our flask application intentionally returns a 403 Forbidden error if the token that facebook sends doesn't match the token you set using the heroku configuration variables.

If you're getting this error, it likely means that you didn't set your heroku config values properly. Run

heroku config
from the command line within your application and verify that there's a key called
VERIFY_TOKEN
that has been set, and that it's set to the same value as what you've typed into the window on facebook.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.