In the recent Facebook 1.4 release they made it possible to have multiple nested items in the Persistent Menus. We will be introducing these features into the Flow XO UI in the not too distant future, but in the meantime if you’re wanting to use this feature then here’s how.
-
Go to the Facebook Graph API Explorer and get the Access Token for your page.
-
Using the JSON supplied by facebook here you can set up your menu’s as required, adding different top level and submenus.
-
Make an HTTP Post request to:
https://graph.facebook.com/v2.6/me/messenger_profile?access_token=YOUR_ACCESS_TOKEN_HERE
You will need to set the headers to:
Content-Type > application/json
The body of the request will be the JSON you produced in step 2 above.
- Once you receive a success response from your request then your Persistent Menu will be installed and live on your bot.