Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/weijiangan/messenger-chatbot
Copied from https://developers.facebook.com/docs/messenger-platform/guides/quick-start. For backup and reference purpose only
https://github.com/weijiangan/messenger-chatbot
chatbot facebook facebook-messenger-bot messenger
Last synced: about 1 month ago
JSON representation
Copied from https://developers.facebook.com/docs/messenger-platform/guides/quick-start. For backup and reference purpose only
- Host: GitHub
- URL: https://github.com/weijiangan/messenger-chatbot
- Owner: weijiangan
- License: mit
- Created: 2017-09-15T15:11:09.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-15T15:12:55.000Z (about 7 years ago)
- Last Synced: 2023-10-19T21:41:42.741Z (about 1 year ago)
- Topics: chatbot, facebook, facebook-messenger-bot, messenger
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Facebook Messenger Bot
This example project creates a Facebook Messenger bot, completely
mirroring the quickstart located in [Messenger Platform docs](https://developers.facebook.com/docs/messenger-platform/guides/quick-start).It's an echo bot that responds to a user's message by repeating their message back to them. It also sends a generic template when a message with "generic" text is received. This project is not dependent on any external libraries and can easily be extended.
![](https://cdn.glitch.com/ca73ace5-3fff-4b8f-81c5-c64452145271%2FmessengerBotGIF.gif)
## Getting Started
To get started you need to:- Set up your Facebook app on Facebook
- Configure your Facebook App
The `Callback URL` you set when configuring your app on Facebook is your Glitch project's publish URL with '/webhook' appended. The publish URL is what loads when you click 'Show' and has the format 'https://project-name.glitch.me', so for this example we used 'https://messenger-bot.glitch.me/webhook' for the Callback URL.
The `Verify Token` is a string you make up - it's just used to make sure it is your Facebook app that your server is interacting with.
- Copy your app credentials into the `.env` file
For more detailed setup instructions, see [Messenger Platform Quick Start](https://developers.facebook.com/docs/messenger-platform/guides/quick-start).