Skip to content

ketphan02/MessMessBotBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

198 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MESSmessbotBOT

logo

MESSmessbotBOT is a chatbot which helps people create other kinds of chat bot easier.

BuildStatus

Deploy

Deploy

Environment variables

  • VERIFY_TOKEN: your random variable to connect to Messenger webhook.
  • PAGE_ACCESS_TOKEN: a token generated by Facebook to identify your Facebook Page.
  • FB_GRAPH_API_VERSION: the version of the Facebook Graph API, I'm using version 8.0 (which is the latest).
Caution: All the variables must be filled in to run the bot

Depedency

Setup the bot:

  1. Press the Deploy to Heroku Button above and name your backend.
  2. Create your application at Facebook Developer Site and fill in the App Display Name.
  3. In the Dashboard, scroll down to see a list of products you can make and press Set Up in the Messenger box. You will be redirected to the Messenger Bot Settings.
  4. Scroll down to Access Tokens, add your Facebook Page. Then, click on Generate Token and copy the token.
  5. Go back to the Heroku Tab, go to SettingsConfig VarsReveal Config Vars.
  6. You will see 2 box in a row, in the KEY box, type "PAGE_ACCESS_TOKEN" and paste your previously copied token into the VALUE box.
  7. Type "FB_GRAPH_API_VERSION" into the KEY box and "8.0" in the VALUE box
  8. Type "VERIFY_TOKEN" into the KEY box and type whatever you want, then copy it.
  9. After that, go back to the Facebook Developer site, under the Access Token tab, there's Webhooks tab. Press Add Callback URL, paste your copied data into Verify Token.
  10. Don't close the window yet, go back to the Heroku tab and right click the Open app button on the top right corner, then choose Copy link address.
  11. Go back to the Facebook Developer site and paste the link to Callback URL box. Then, type "/webhook" right after the pasted URL.
  12. Press Verify and Save and you're ready to go.

Contact

PhanKiet

My GitHub profile My LinkedIn profile My Gmail My Outlook

TheAnh Vu

My GitHub profile My LinkedIn profile My Gmail

Reference

About

A Messenger Bot creates Messenger Bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors