In order to integrate with Facebook Messenger, its needed create a Facebook App.
Go to Facebook Developer Portal: https://developers.facebook.com
Lets press Create App button
Select this one
Select this one
Complete form
Provide App ID and App Secret with plaform administrators
Note for administrators:
FB_VERIFY_TOKEN=You must generate a token to use here which will be used later for callbacks
FB_APP_SECRET=App Secret
FB_APP_ID=App ID
Configure the product Facebook Login for Business:
Now its time to add the Facebook Page that we have
The nexts steps its to retrieve the Facebook Page from the Facebook account
Select Page
Result as follow
Complete with:
Result as follow
Press Add Subscription
Select:
Result as follow:
On App Review -> Permissions and Features click on Request advanced access on:
pages_messaging
Business Asset User Profile Access
pages_show_list
pages_manage_metadata
And then click on Continue requests
Select yes on the modal asking about enable multiple bussines clients
Go to Requests. In this step we ask to Facebook the request of the above 4 advanced access permissions
Its needed a business verification