Step 1: Create a Facebook application - Amazon Lex

Step 1: Create a Facebook application

On the Facebook developer portal, create a Facebook application and a Facebook page.

To create a Facebook application
  1. Open https://developers.facebook.com/apps

  2. Choose Create App.

  3. In the Create an App page, choose Business, then choose Next.

  4. For the Add on app name, App contact email, and Business Account fields, make the appropriate choices for your app. Choose Create App to continue.

  5. From Add Products to Your App, choose Set Up from the Messenger tile.

  6. In the Access Tokens section, choose Add or Remove pages.

  7. Choose a page to use with your app, then choose Next.

  8. For What is app allowed to do, leave the defaults then choose Done.

  9. On the confirmation page, choose OK.

  10. In the Access Tokens section, choose Generate Token, then copy the token. You enter this token in the Amazon Lex V2 console.

  11. From the left menu, choose Settings and then choose Basic.

  12. For App Secret, choose Show and then copy the secret. You enter this token in the Amazon Lex V2 console.

Next step

Step 2: Integrate Facebook Messenger with the Amazon Lex V2 bot