在Facebook机器人上持久菜单的本地化

时间:2017-03-12 21:31:44

标签: json facebook bots botframework

我正在使用下面的代码段来使我的Facebook持久性菜单本地化...我使用了Node.js并向facebook文档中提到的url发出了请求

它告诉我菜单已更新,但它仍然只显示所有用户的英语,甚至是使用阿拉伯语的用户

{
    "persistent_menu":[
    {
      "locale":"ar_ar",
      "call_to_actions":[
        {
          "type":"postback",
          "title": "\u062a\u063a\u064a\u064a\u0631 \u0627\u0644\u0644\u063a\u0629",
          "payload": "\u062a\u063a\u064a\u064a\u0631 \u0627\u0644\u0644\u063a\u0629"
        }
      ]
    },
    {
      "locale":"en_us",
      "call_to_actions":[
        {
          "type":"postback",
          "title":"Change Language",
          "payload":"Change Language"
        }
      ]
    },
    {
      "locale":"default",
      "call_to_actions":[
        {
          "type":"postback",
          "title":"Change Language",
          "payload":"Change Language"
        }
      ]
    }
    ]
    }

0 个答案:

没有答案