Messenger

Learn to set up a Facebook Messenger communication channel for your application in your NLX workspace

If you don't already have a Facebook page for your application to connect to, create one on Facebook (https://facebook.com). Once your page is in place, set up Messenger before creating a channel.

Set up Messenger

To generate the other necessary properties to get your application up and running with Messenger, first create a Messenger product:

  1. Navigate to your Facebook App on https://developers.facebook.com. Scroll down to the Products section and choose Messenger for Set Up

Generate Page access token

  1. On your Facebook App's page, click Add or Remove Pages

Facebook App page
  1. Navigate to your app's page and choose the Facebook page you want to link your application to

  2. Follow the steps in the pop-up

  3. After the page is added, click Generate Token

  4. Copy the token from the popup > Click Done

Generate Verify token

  1. You may use any method to generate this string. We recommend using a password generator such as https://www.lastpass.com/password-generator

For security, make sure the Verify token is at least 32 characters long.

Add channel to app

  1. Select Configuration tab of your application in your NLX workspace

  2. Choose + Add channel under Delivery section > Choose Messenger

  3. Click Create channel

  4. Click Save

Post deployment

  1. After deploying your application, make note of the application's URL by expanding the Details link beside your Deployed status. Expand the Messenger section in the popup modal > Copy the Bot URL

  2. On your Facebook App's page, scroll to the Webhooks section > Click Add Callback URL

  3. Enter the bot's URL into the Callback URL field. Then enter the Verify token value you created into the Verify Token field

  1. Click Verify and Save

  2. On your Facebook App's page, scroll to the App Review for Messenger section > Select to add the pages_messaging permission

Last updated