Enable the Get Started Button on Facebook Messenger Bot

Enable the Get Started Button on Facebook Messenger Bot

Users interacting with a Facebook Page Messenger for the first time will see a Welcome Screen that displays a “Get Started” button. When a user taps the button, the Messenger Platform will send a postback event to the registered webhook. A “Get Startedmessage will be posted into the conversation which now grants your bot the permission to send and receive messages from the user.

Enabling the “Get Started” button only requires a few easy steps.

Postman

Download and install the Postman application. It is a very handle tool that every developer should have for sending requests to different API endpoints.

After installing, launch the Postman application and create a New Request project.

Setting up the Get Started Button

1. Change the “GET” to “POST” type of request.

Post Man New Request

2. Set the API endpoint URL.

https://graph.facebook.com/v6.0/me/messenger_profile?access_token=**PAGE_ACCESS_TOKEN**

Update the “access_token” parameter using the actual token that you can generate in your App Dashboard for the Facebook page you want to add the “Get Started” button.

Post Man New Request Access Token

3. Set the “Content/Type” in the “Headers” tab to “application/json”.

Post Man New Request Header

4. Navigate to the “Body” section and select the “raw” format. Then paste the following JSON.

{
   "get_started":{
      "payload":"{\"type\":\"legacy_reply_to_message_action\",\"message\":\"Get Started\"}"
    }
}
Post Man New Request Body

5. Lastly, click the “Send” button. You will see the following response if the request you made is successful.

Postman New Request Response

And to have it verified, open up the Messenger app in your mobile phone and search for your Facebook Page’s profile.

Welcome Screen

There you’ve got it! You’ve just created the “Get Started” button on your Facebook Messenger Bot. If it’s not the first time you interact with the page, you need to delete the previous conversation for the changes to take effect.

After these steps, you can already add a persistent menu to give your users an interactive and personalized experience within your messenger bot.

Cromwell Bayon

He is a self-tutored programmer and a Full-Stack Developer. He strives to excel in the newest technology as possible. He has a very high sense of technicality and analytical skills which allows him to resolve any kind of issues related to technology. He also loves woodworking. Read more about him here...

This Post Has 2 Comments

  1. Hasnain Shaikh

    Hii Get Started Hasnain Shaikh

  2. Hasnain Shaikh

    get_started”:{
    “payload”:”{\”type\”:\”legacy_reply_to_message_action\”,\”message\”:\”Get Started\”}”
    }
    }

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.