For more information about the prerequisites of using Facebook Messenger with the Content API, see the Twilio FBM channel help article here.
do not work on FBM.
FBM is in-session (user initiated) only. It means:
Once they've messaged you, you can respond any number of times within a 24 hour period.
Open a chat in Messenger
Note the page URL's suffix. This is your page's FBM ID. (i.e.
103800709108123 in this URL). You will use this later in the configuration process.
Open your Twilio Console in a new browser. Click on Explore Products link in the left navigation pane and select Channels Beta product.
Messages sent from Facebook Business Manager will not appear in Twilio. Please ensure that all messages intended for Twilio are sent directly from the Twilio platform.
*This is not a hard requirement. But if you do not do this then you will need to set up the webhook in your FBM Sender. Additionally, you will need to specify a Messaging Service Sid parameter and put your FBM sender in the from field. Similar to here except replace phone numbers with the respective FBM sender id.
To send a message in FBM, you need to know your recipient's FBM ID. Facebook does not make FBM IDs public so you will need to use a webhook to retrieve the FBM ID from an inbound message. For setup purposes and testing purposes, you will need to set up a webhook and message yourself to get your personal FBM ID.
Copy the webhook into the Delivery Status Callback URL section.
Send a message to your page from your personal Facebook Messenger:
field. This will contain the end user's FBM ID.
field for the incoming message's webhook response.