Get Started with Facebook Messenger

In this section, we cover the Facebook Messenger onboarding details.

Before you can start receiving and sending Facebook messages over the Infobip platform, you have to go over the following steps:

Step 1 – Create your business’ official Facebook page and app

Step 2 – Connect to the Infobip platform

Step 3 – Submit your messenger app for review


To use the Infobip platform, you need credentials. If you already have an Infobip account, log in to our web interface. Otherwise, create an account.

Create Facebook Page and Messenger App

  1. For your business to use Facebook Messenger, you must set up the Facebook page. In case you already have an existing Facebook page, proceed to create the application. However, if you don’t have one, refer to the official Facebook documentation on how to create a Facebook page.
  2. Once you have created your Facebook page, create your first Facebook application. Applications can be created and managed in the Facebook apps section. 

Create new app ID

  1. Get Page access token, App ID, and App secret from Facebook. To get your App ID and App Secret navigate to Settings > Basic and there you will see your App ID and App Secret (you will be prompted to enter your password).Get app ID and app secret
  2. Then navigate to Products > Messenger (Set up).

Create app - Messenger

  1. To get your Page Access Token, go to Messenger > Settings > Access Tokens and select your page.

Get access token

  1. Once you have selected your page, click on Generate Token.

Generate token

At this moment, you should have the following, mandatory variables, that are needed to successfully connect to the Infobip platform and to send and receive messages:

  • Access token
  • App secret
  • App ID

Connect to the Infobip Platform

To connect your Facebook page to the Infobip platform, trigger the API request (with the variables obtained in the previous step).

Here is the full overview of API needed.

Request example:

POST /ott/facebook/1/integration
Host: {base_url}
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Accept: application/json

  "page": {
    "accessToken": "Access Token” 
  "application": {
    "id": 1,  
    "secret": "App secret"  

Response example:

  "page": {
    "accessToken": "EAAH9GFCt2CcBAJQKe30jqtAUj6cQmUnyOrTlxZADKJyGRCnNN4p6H8ZClj8NsGPboLAIt7KIlcSSdBhhoq3hYBHhXnELDBHDVpoM50e4dmASpEqCqzpnhP5A3yPCUsMCcvc8mbWMQzhExYJZA03MyffS06BV88IDtZAHsrf5QZADY0cCWyIEM"
  "application": {
    "id": 559755851323431,  
    "secret": "d88b8bb5abfdc14d7352d97fa0fca440",
    "name": "Test App",
    "imageURL": ""   

To test out your Facebook Messenger page, you need to add a sample user to your Facebook application as Admins. Go to > My Apps > Roles >Add Administrators.

Admin roles for testing the application


Adding the Administrator, to test page, is necessary only until your page is live.

Submit Your Facebook Messenger App for Review

When you are ready to go live with your page, you must submit the app for review. This review process allows Facebook to ensure your Messenger app, together with the page, aligns with all policies and functions as expected before it is made available to everyone on Facebook Messenger.

To submit your app, refer to the App Review.