Step 3: Complete Facebook integration with your Lex V2 bot - Amazon Lex

Step 3: Complete Facebook integration with your Lex V2 bot

In this step, use the Facebook developer console to complete integration with Amazon Lex V2.

To complete Facebook Messenger integration
  1. Open https://developers.facebook.com/apps

  2. From the list of apps, choose the app that you are integrating with Facebook Messenger.

  3. In the left menu, choose Messenger, then choose Settings.

  4. In the Webhooks section:

    1. Choose Add Callback URL.

    2. In Edit Callback URL, enter the following:

      • Callback URL – Enter the callback URL that you recorded from the Amazon Lex V2 console.

      • Verify Token – Enter the alias that you entered in the Amazon Lex V2 console.

    3. Choose Verify and Save.

    4. Choose Add subscriptions under Webhooks next to your page.

    5. In the window that pops up, choose messages and then click Save.

Next step

Step 4: Test the integration with Facebook Messenger