https://github.com/gualtierim/serverless-typescript-facebook-bot
A example of a facebook Bot written in typescript ready to work inside serverless architectures
https://github.com/gualtierim/serverless-typescript-facebook-bot
facebook-messenger facebook-messenger-bot serverless typescript
Last synced: 7 months ago
JSON representation
A example of a facebook Bot written in typescript ready to work inside serverless architectures
- Host: GitHub
- URL: https://github.com/gualtierim/serverless-typescript-facebook-bot
- Owner: gualtierim
- Created: 2018-01-15T23:20:35.000Z (over 8 years ago)
- Default Branch: develop
- Last Pushed: 2018-01-17T14:30:47.000Z (over 8 years ago)
- Last Synced: 2025-11-14T12:32:57.872Z (7 months ago)
- Topics: facebook-messenger, facebook-messenger-bot, serverless, typescript
- Language: TypeScript
- Size: 29.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# serverless-typescript-facebook-bot
A example of a facebook Bot written in typescript ready to work inside serverless architectures.
## Deploy
To deploy with example is used serverless: a common utility to deploy serverless architectures.
In particular, this example contains a configuration for AWS world.
**Note:** You might want to look take a look at the Facebook Messenger Platform [quickstart guide](https://developers.facebook.com/docs/messenger-platform/quickstart) or the Facebook Messenger Platform [in-depth documentation](https://developers.facebook.com/docs/messenger-platform/product-overview/setup).
### Variables
- FB_ACCESS_TOKEN: the public token of your facebook's page
- FB_VERIFY_TOKEN: the private token used to authenticate your application
- VERSION: the version of your API
### Steps
- Change the value of the environment variables declarated inside `activate.sh`
- Activate the environment that contains the variables launching the command `source activate.sh`
- Install the nodeJS modules `npm install`
- Run the deploy `serverless deploy`
- Fill the public endpoint of your facebook webHook
- Activate your application with a post call at `https://graph.facebook.com/v2.6/me/subscribed_apps?access_token=${FB_ACCESS_TOKEN}`