Skip to content

Commit

Permalink
config default value and better documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
asashour committed Feb 27, 2020
1 parent 3c2f669 commit 7b85f42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/channel-messenger/README.md
Expand Up @@ -17,8 +17,10 @@ Messenger requires you to have a Facebook App and a Facebook Page to setup your
#### Enable the Messenger Channel

- Run Botpress Server a first time to auto-generate the global configuration file
- Enable `channel-messenger` module in the global configuration file
- Head over to `data/global/config/channel-messenger.json`. If it doesn't exist, restart Botpress Server.
- Set the following properties:
- `enabled` to `true`
- `appSecret`. You will find this value in your Facebook App page.
- `verifyToken`. This is a random string you need to generate and keep secret. You'll need to copy/paste this token in the Facebook App portal when setting up your webhook.
- Make sure you have an HTTPS url pointing to your Botpress Server and set the [`EXTERNAL_URL`](https://botpress.com/docs/manage/configuration#exposing-your-bot-on-the-internet) environment variable
Expand Down
2 changes: 2 additions & 0 deletions modules/channel-messenger/src/config.ts
Expand Up @@ -15,12 +15,14 @@ export interface Config {
* This this in the GLOBAL config (same for all bots)
* Your app's "App Secret"
* Find this secret in your developers.facebook.com -> your app -> Settings -> Basic -> App Secret -> Show
* @default app_secret
*/
appSecret: string
/**
* Set this in the GLOBAL config (same for all the bots)
* The verify token, should be a random string unique to your server. This is a random (hard to guess) string of your choosing.
* Docs: https://developers.facebook.com/docs/messenger-platform/getting-started/webhook-setup/#verify_webhook
* @default verify_token
*/
verifyToken: string
/**
Expand Down

0 comments on commit 7b85f42

Please sign in to comment.