Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 11 additions & 18 deletions articles/bot-service-channel-connect-facebook.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,19 @@ The bot is accessed through a Facebook Page.

![Enable messenger](media/channels/fb-messenger-bot-enable-messenger.png)

### Generate a Page Access Token
### Add pages and generate tokens

1. In the left pane, under the Messenger entry, click **Settings**.
1. In the right pane, scroll down and in the **Token Generation** section, select the target page.

![Enable messenger](media/channels/fb-messenger-bot-select-messenger-page.png)
1. In the right pane, scroll down and in the Access Tokens section, click "Add or Remove Pages":

1. Click the **Edit Permissions** button to grant the app pages_messaging in order to generate an access token.
1. Follow the wizard steps. In the last step accept the default settings and click the **Done** button. At the end a **page access token** is generated.
![Add Page](media/channels/fb-messenger-bot-add-or-remove-pages.png)

![Messenger permissions](media/channels/fb-messenger-bot-permissions.png)
1. From the list that comes up in the next window, select the pages you want to use with the app.

1. Copy and save the **Page Access Token**.
1. Click Done.

1. Now you can generate token for this page by clicking **Generate Token** button.

### Enable webhooks

Expand All @@ -96,19 +96,12 @@ In order to send messages and other events from your bot to Facebook Messenger,

1. Click the **Save** button.

1. Let's go back to the Facebook settings. In the right pane, scroll down and in the **Webhooks** section, click the **Subscribe To Events** button. This is to forward messaging events from Facebook Messenger to the bot.

![Enable webhooks](media/channels/fb-messenger-bot-webhooks.PNG)

1. In the displayed dialog, enter the **Callback URL** and **Verify Token** values stored previously. Under **Subscription Fields**, select *message\_deliveries*, *messages*, *messaging\_optins*, and *messaging\_postbacks*.

![Config webhooks](media/channels/fb-messenger-bot-config-webhooks.png)

1. Click the **Verify and Save** button.
1. Let's go back to the Facebook settings to finish up the configuration process.

1. Select the Facebook page to subscribe the webhook. Click the **Subscribe** button.
1. Paste the **Callback URL** and **Verify Token** values that you collected in the Azure portal.

![Config webhooks page](media/channels/fb-messenger-bot-config-webhooks-page.PNG)
1. In the Webhooks configuration, enable the following subscriptions:
*message\_deliveries*, *messages*, *messaging\_optins*, and *messaging\_postbacks*.

### Submit for review

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.