Alli User Guide - Facebook Messenger Integration

Learn how to integrate Facebook Messenger. #fb

Alli User Guide - Facebook Messenger Integration

If you don't already have an Alli skill, create and turn it on first. For more details about how to create a skill, please see this user guide.

Integrate Facebook Messenger

  1. In Alli dashboard go to Settings > Integrations > Facebook tab.
    Screen_Shot_2020-11-11_at_2_40_12_PM
  2. Log into Facebook for Developers to retrieve the Page access token by following the steps below.
  3. At the top right corner, click My Apps and select the app you want to integrate with Alli.
    image8
  4. You can skip this step if you already have a page set up for this app; otherwise go to Settings > Advanced, click Create New Page to create a page.
    image9
  5. Once the page is created, reload the Facebook for Developers and select the page you just created, then Save Changes.
    Screen_Shot_2020-01-14_at_7_15_30_PM
  6. Click Dashboard in the left navigation.
  7. Click the “+” icon in the left navigation then click Set Up in Messenger.
    image4-1
  8. Scroll down to Access Token then click 'Add or Remove Pages' button to select the page to integrate with Alli. Generate and copy the Page Access Token into Alli’s integration form.
    image3-2
    Screen_Shot_2020-10-23_at_11_49_08_AM_2-1
  9. Go back to Facebook for Developers and Click the “+” icon in the left navigation again then click Set Up in Webhooks. Select the Page from the dropdown and click Subscribe to this object. You need to put Verify Token and Callback URL.
    Screen-Shot-2020-01-14-at-7.26.27-PM
  10. Go back to the Facebook integration setting in Alli, click the Generate button in the Verify Token field.
  11. Copy and paste the Verify Token and Callback URL into the Facebook for Developers.
  12. Click Messanger > Setting on the left navigation, scroll down to Webhooks. Click Add Subscriptions button then check the following Subscription Fields:
    Screen_Shot_2020-01-14_at_7_30_46_PM
  13. In Alli, click Connect button in the Facebook form in the Alli dashboard and the form should look like this when completed.
    Screen_Shot_2020-10-23_at_11_53_18_AM
  14. Give it about 15 minutes then you can message your Facebook App from Facebook Messenger to test out your chatflow.

Updating Verify Token or Callback URL in Facebook

If you need to update your Verify Token or Callback URL:

  1. Go to Webhooks in the left menu
  2. Click Edit Subscription
  3. A form will pop up where you can update the Verify Token and Callback URL

Learn More About Allganize's Technology