Permanent Messenger menu not showing

I am currently developing a Facebook messenger bot. However, I am unable to attach a persistent menu to it.

I read the requirements here :

The user must be on Messenger v106 or above on iOS or Android.
The page the bot is attached to must be published.
The bot must be set to "public" in the developer console.
The bot must have passed the approval process for pages_messaging permission

      

And all this has been accomplished.

When I install the menu, I get this feedback from Facebook:

Array
(
    [result] => success
)

      

However, it still doesn't show up on my Android device or web Facebook. I deleted the conversation and re-entered several times with no success.

By the way, I am using this lib for the Graph api, just in case.

+3


source to share


2 answers


Okay, the point is, you need to send an array of menus for each locale, but oddly enough, Facebook doesn't warn you if your request is wrong.



+2


source


Xameeramir, I meant something similar. Notice how the menus are different for each locale.



curl -X POST -H "Content-Type: application/json" -d '{
"persistent_menu":[
    {
      "locale":"default",
      "composer_input_disabled":true,
      "call_to_actions":[
        {
          "title":"My Account",
          "type":"nested",
          "call_to_actions":[
            {
              "title":"Pay Bill",
              "type":"postback",
              "payload":"PAYBILL_PAYLOAD"
            },
            {
              "title":"History",
              "type":"postback",
              "payload":"HISTORY_PAYLOAD"
            },
            {
              "title":"Contact Info",
              "type":"postback",
              "payload":"CONTACT_INFO_PAYLOAD"
            }
          ]
        },
        {
          "type":"web_url",
          "title":"Latest News",
          "url":"http://petershats.parseapp.com/hat-news",
          "webview_height_ratio":"full"
        }
      ]
    },
    {
      "locale":"zh_CN",
      "composer_input_disabled":false
    }
  ]
}' "https://graph.facebook.com/v2.6/me/messenger_profile?access_token=YOUR_ACCESS_TOKEN_HERE"

      

0


source







All Articles