Facebook App Setup
Log into Facebook for Developers and Go to MyApps
Create New App
Click "Create App"
Choose "Business" from the "Select an app type" popup
Click "Continue"
Add "App Display Name"
Add "App Contact Email"
Choose "App Purpose" as "Yourself or your own business"
Choose a Business Manager account if you have one
Click "Create App"
In order to access certain aspects of the Facebook platform, apps may need to be connected to a verified Business Manager account. If you haven't yet set up an account, you can create one now or later in the process.
Add Products to Your App
Find the "Messenger" from the page and click "Set Up"
Access Tokens
Click "Add or Remove Pages"
Complete the Facebook authentication and select the pages
Generate token by clicking the button "Generate Token"
Copy that generated token
Go back to our dashboard
Go to "Application Settings"
Click "Facebook Messenger Setup"
Add the generated token in the field "Token"
Add a "Verification Key" (This can be any string)
Click "Save Changes"
Webhooks
To deploy a live webhook that can receive webhook events from the Messenger Platform, your code must be hosted on a public HTTPS server that meets the following requirements.
HTTPS support: Self-signed certificates are not supported. A valid SSL certificate.
Click the "Add Callback URL" button
Add "Callback URL"
Add "Verify Token" (This is the Verification Key you have added in the previous step)
Click "Verify and Save"
The verification should be successful before moving forward
Add Subscriptions
Click the button "Add Subscription"
Choose the following fields from the Subscription Fields
messages
messaging_postbacks
messaging_referrals
Click "Save"
To ensure quality and prevent abuse of the Platform, all Messenger apps must be submitted for review before they can interact with everyone on Messenger. During development, you will be able to send messages to anyone that has been granted either the Administrator, Developer, or Tester role for your app.
Last updated