LogicDialog
About UsLogicDialogChat PluginSDK
  • What is Logicdialog?
  • Creating your bot
    • Building a conversation flow
    • Finding and editing blocks
    • Selecting the block type
    • Reusing blocks
    • How to change a block type
    • Organising blocks by topic
    • Removing content
    • Buttons
    • Forms
    • Previewing your bot
    • How to write your content
  • Training
    • NLP
    • Creating Intents
    • Creating Entities
    • Using Intents
    • Review questions
    • Testing Intents
  • Look and Feel
    • Standard text
    • Bot Icon
    • Opening Hours
  • Live Agents
    • Agents & Departments
    • Department Routing
    • Live conversations
    • Notifications
  • Integrations
    • Webhooks
    • Zapier
    • WhatsApp
    • Google Business Messaging
    • MS Teams
    • Facebook
    • Analytics APIs
    • Importing knowledge
      • Importing Word Documents
  • Fundamentals
    • Blocks
    • Analytics
    • Utterances
    • Intents
    • Entities
    • Events
    • Forms
    • Webhooks
    • Chat Plugin
  • Support
    • Getting support
    • Raising Tickets
    • Changes to Authentication Provider
    • Enabling Browser Notifications
    • End of support for chat plugin installer
    • Important update: Action required for live agents
Powered by GitBook
On this page
Export as PDF
  1. Integrations

Facebook

PreviousMS TeamsNextAnalytics APIs

Last updated 10 months ago

With logicdialog you can write your content once, and deploy it to multiple other channels without any changes to the content. One such channel is Facebook.

To get your bot running on Facebook there will be a few steps that you'll need to do.

Step 1: Create a Facebook Developer Account

Step 2: Create a Facebook Page

Step 3: Create a New App

  1. Log in to your Facebook Developer account.

  2. Click on the "My Apps" dropdown in the top right corner and select "Create App."

  3. Choose the "Other" category and select "None" as the app type. Fill in the necessary details for your app.

Step 4: Copy App Secret to LogicDialog

  1. Open you Facebook App, under App Settings click on the Basic menu item

  2. Copy your App secret and paste into Logicdialog ( settings -> channel -> facebook ) by clicking on the connect button, paste into App secret field.

  3. Submit the changes

Step 5: Add a Product (Messenger)

To connect your app to a Messenger page, you need to add the Messenger product to your Facebook app:

  1. In your app's dashboard, click on the "Add Product" button.

  2. Find and select "Messenger" from the list of available products.

  3. Configure the Messenger settings, including the webhook and access token, as needed, described in the next step.

Step 6: Set Up a Webhook

To connect your Messenger page to your app, you'll need to set up a webhook:

  1. In the Messenger settings, click on the "Add Callback Url" button.

  2. Enter your webhook URL and Verify token. This Url and Verify token can be found on logicdialog settings -> channel -> facebook by clicking the connect button ( screenshot from step 4 ).

  3. Verify and save your settings

Step 7: Add Messenger to Your Page

To connect your Messenger page to your app, you'll need to link them together:

  1. In the Messenger settings, under "Access Tokens," select the page you want to link.

  2. Click the "Add or Remove Pages" button and follow the prompts to link your page to your app.

Step 8: Connect your page with LogicDialog

You'll need an access token and page Id to interact with the LogicDialog bot. Here's how you can get one:

  1. In the Messenger settings, under "Access Tokens" select the page you want to link.

  2. Clicking on the Generate Token button will prompt you with a pop up window. You must check the button that says I Understand before it'll show you the full access token.

  3. Once you have copied the access token, along with the page ID please add it to your logicdialog settings -> channel -> facebook clicking on the Add Page button.

Step 9: The final step is then to subscribe to various events that facebook can produce

  1. In the Messenger settings, under "Webhooks" select the page you want to subscribe and click on Add Subscription.

  2. The events to sign up for are below:

Once everything has been setup correctly you will be able to use the Message button on the facebook page to start talking to your digital assistant. If you need any further help setting things up, please don't hesitate to get in touch.

If you don't have one already, create a Facebook Developer account by going to the website and signing up.

Chances are you will have already got one of these if you have an existing business or presence on Social Media. There is more information about this on the should you need it. It is this page that we'll be adding the bot to.

Facebook for Developers
Facebook site
The list of Facebook page subscriptions that need signing up for.