AmplifyReach Facebook integration allows you to create a Facebook Messenger bot with natural language understanding, based on the AmplifyReach technology.
Setting Up Facebook
To set up the Facebook integration for your bot, you need following:
- A Facebook account
- A Facebook page to add your bot to
When a user visits your facebook page and sends you a message, they’ll be talking to your bot.
Create a Facebook App
- Log into the Facebook Developer Console.
- Click on My Apps in the upper right hand corner.
- Select “Manage business integrations”. Click Continue.
- Enter App Display Name and email Id and purpose. Click Submit.
- A list of products will be shown.
- Please find “Messager” in the list and click on “Set Up” button.
- Click Add or Remove Pages to select your fb page.
- Select Generate Token. This will generate a Page Access Token. Please copy this token, as you need to enter it in AmplifyReach Facebook Channel Configuration.
Setting up Facebook Configuration in AmplifyReach
- Go to Channels -> Facebook Messenger -> Configuration tab. Messenger. In the dialog that opens, enter the following information:
- Enter Verify Token – This can be any string and it needs to be provided in Facebook settings in further steps
- Page Access Token – Paste the token generated in the Facebook Developer Console for your page
- Select Yes to enable Facebook Messenger.
- Copy Callback URL. This needs to be provided in Facebook settings in further steps
- Click the Save button.
Note: Keep the Callback URL and Verify Token handy for configuring the webhook.
To configure your bot’s webhook, go back to Facebook Developer Console:
- Goto Webhooks section and select Add Callback URL:
- Callback URL – This is the URL provided on the AmplifyReach Facebook Messenger Configuration section. Copied in previous step
- Verify Token – This is the token you entered in previous step
- Select verify and save.
- Select Add Subscriptions
- Select messages and messaging_postbacks options, save.
Note: If you’re using rich messages, make sure the messaging_postbacks option is checked.
In order to make your bot available for testing, you need to make your App Live:
- Click on Settings in the left menu of the Facebook Developer Console.
- Click on the Basic under Settings. Add the basic details and Click the Save Changes button.
- Make your app public by switching the flag .
You need to set a username for your page. This username will be shown in chatbot. To set the username, click the Create Page @Username link under your page’s profile picture and title.
Note: You can make your app available for testing by adding testers to the app. To do this click on Roles in the left menu and then add people in the Testers section.