Skip to content

daniellvy/amlk_facebook_chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hebrew TL;DR Facebook Messenger Chatbot

To deploy new code you will need to install Heroku CLI.

Clone repository, update the code, commit it and use deploy_code.bat script.

It will push the code to this repository, restart the web server and display a live log from the server, if the code is buggy then all the issues will show on the log.

If you are running on a UNIX machine, you can deploy the server locally, cannot do that on Windows yet.

Regarding Facebook Messenger Bot

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

This bot was built from this tutorial.

Common issue - "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.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •