如何将菜单图标添加到Facebook持久性菜单

时间:2017-08-18 18:22:31

标签: facebook curl botframework git-bash facebook-messenger-bot

如何在Facebook持久性菜单中添加图标?如下图所示。使用这个Facebook示例,我需要添加到Git Bash执行代码中吗?

strtotime

示例:

enter image description here

1 个答案:

答案 0 :(得分:4)

你可以使用facebook emojies - >例如:✏... 这里有一个链接可以帮助复制emojies:

https://www.piliapp.com/facebook-symbols/chat/

我的意思是这样的:



{
  "persistent_menu":[
    {
      "locale":"default",
      "composer_input_disabled":false,
      "call_to_actions":[
        {
          "title": " bla",
          "type":"nested",
          "call_to_actions":[
            {
              "title":" bla",
              "type":"postback",
              "payload":"SeeCourses_PAYLOAD"
            },
            {
              "title":" bla",
              "type":"postback",
              "payload":"SeeMyCourses_PAYLOAD"
            },
        {
          "title":" bla",
          "type":"postback",
          "payload":"SearchForCourses_PAYLOAD"
        }
          ]
        },
        {
          "title":" bla",
          "type":"postback",
          "payload":"SessionsDateAndTimes_PAYLOAD"
        },
        {
          "title":"⚠ bla",
          "type":"postback",
          "payload":"InsituteInfo_PAYLOAD"
        }
      ]
    },
    {
      "locale":"ar_AR",
      "composer_input_disabled":false,
      "call_to_actions":[
        {
          "type":"postback",
          "title":"Change Language",
          "payload":"Change Language"
        }
      ]
    }
  ]
}