🇬🇧
1millionbot
English
English
  • Create a virtual assistant
  • Create DialogFlow credentials
  • Chatbot
    • Conversations
    • Channels
      • Web
      • Twitter
      • Slack
      • Telegram
      • Teams
      • Facebook Messenger
      • Instagram Messenger
      • WhatsApp Cloud API
      • WhatsApp Twilio
    • Customize
    • Knowledge Base
      • Intents
        • Create an intent
        • Training Phrases with Entities
        • Extracting values with parameters
        • Rich responses
        • Best practices
      • Entities
        • Create an entity
        • Types of entities
        • Synonym generator
        • Best practices
      • Training
        • Validation and training of the assistant
      • Library
  • Insights
    • Chatbot
    • Live chat
    • Survey
    • Reports
  • Leads
    • Leads
  • Surveys
    • Surveys
  • Account
    • IAM
  • Profile
    • Security
Powered by GitBook
On this page
  • Set up
  • Create a Meta App
  • Generate a Permanent Access Token
  • Obtain the Facebook Page ID
  • Obtain the application secret key
  • Connect your app with your assistant
  • Set permissions
  • Publish Meta app
  • Limitations
  1. Chatbot
  2. Channels

Facebook Messenger

PreviousTeamsNextInstagram Messenger

Last updated 9 months ago

Set up

To set up your assistant integration in Facebook Messenger, you'll need the following:

  • A Facebook account registered in the .

  • A Facebook page connected to Meta Business.

Create a Meta App

  1. Access the .

  2. Click on 'Create application', select 'Other', and then click on 'Continue'.

  3. Select 'Business' in the next step.

  4. In the form, fill in all fields and click on 'Create application'.

  5. In the Dashboard menu section, click 'Configure' for the Messenger product.

Generate a Permanent Access Token

  1. Go to Messenger > Setting up the Messenger API.

  2. In the second step, click on 'Connect'.

  3. Select the Facebook page you want to connect to the assistant.

  4. Save and click on 'Generate Token'.

  5. Copy the generated token for future use.

Obtain the Facebook Page ID

  1. Go to Messenger > Setting up the Messenger API.

Obtain the application secret key

  1. Access to the created application.

  2. Go the Settings > Basic Information menu section.

Connect your app with your assistant

Activate integration in 1millionbot platform

  1. Go to the Channels section on the platform.

  2. Activate Facebook and click on 'Settings'.

  3. Enter the previously obtained data: Application Secret Key, Permanent Access Token and Faceboook Page ID

Activate integration in Meta

Obtain the Callback URL

Configure the Meta Webhook

  1. Paste the previously obtained callback URL and Permanent Access Token.

  2. Click on 'Save'.

Set permissions

  1. In the previous section, click on 'Administrate'.

Publish Meta app

  1. Now, your application is in development mode, so you can test the assistant's operation as long as you are the owner or have access to the Facebook account connected to the assistant.

  2. Done! Once published, perform tests to verify the operation of your assistant on the provided Facebook account. 🎉

Limitations

  • A maximum of (200 * Number of Fanpage Likes) messages per day can be sent per bot.

  • Buttons must have a maximum of 20 characters.

  • Maximum of 3 buttons per message.

Copy the Page ID displayed below the Facebook account.

Navigate to .

Click show and copy the application secret key.

Click on 'Save'.

Go to the 1millionbot platform and click on the 'Info' button in the Facebook channel to get the callback URL.

In the Messender > Setting up the Messender API menu section, click on 'Configure' in the Webhook section (first step).

Subscribe to messages permissions.

In the Generate Access Token section, click on 'Subscribe' and select the following permissions: - messages - messaging_postbacks - messaging_optins - messaging_optouts - message_deliveries - message_reads

To publish the assistant for public interaction, complete the last step.

Facebook developers console
developer console
Facebook developer console