Facebook Messenger
Last updated
To set up your assistant integration in Facebook Messenger, you'll need the following:
A Facebook account registered in the developer console.
A Facebook page connected to Meta Business.
Access the Facebook developer console.
Click on 'Create application', select 'Other', and then click on 'Continue'.

Select 'Business' in the next step.

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

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

Go to Messenger > Setting up the Messenger API.
In the second step, click on 'Connect'.

Select the Facebook page you want to connect to the assistant.
Save and click on 'Generate Token'.

Copy the generated token for future use. 
Go to Messenger > Setting up the Messenger API.
Copy the Page ID displayed below the Facebook account.

Navigate to Facebook developers console.
Access to the created application.
Go the Settings > Basic Information menu section.
Click show and copy the application secret key.

Go to the Channels section on the platform.
Activate Facebook and click on 'Settings'.
Enter the previously obtained data: Application Secret Key, Permanent Access Token and Faceboook Page ID
Click on 'Save'.

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

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

Paste the previously obtained callback URL and Permanent Access Token.
Click on 'Save'.
In the previous section, click on 'Administrate'.
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

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.
To publish the assistant for public interaction, complete the last step. 
Done! Once published, perform tests to verify the operation of your assistant on the provided Facebook account. π
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.
Last updated