Choosing the language for the Persistent Menu with facebook messenger bot

血红的双手。 提交于 2019-12-10 22:33:12

问题


I'm currently doing a bot for Facebook messenger. My bot is multi language but the problem is that I can't find a way to change the language in the bot menu according to the user.

Do you have any idea how to fix that issue?

I can't find any solution: https://developers.facebook.com/docs/messenger-platform/thread-settings/persistent-menu


回答1:


If you're supporting 10 or less languages, one solution could be to at the beginning of each conversation, send a message and have them choose their language using quick replies

EDIT: The persistent menu can't be different for users, so I don't think multi-language is currently supported within the persistent menu.




回答2:


So facebook response:

Unfortunately, there is no way to set local for now. This is working as intended but the team will keep your feedback in mind for their next milestones. Hope this helps.




回答3:


As of March 2017 (Platform 1.4) this is now supported.

From the Facebook Docs...

Localization: Developers can now provide text in multiple languages (or entirely different menus) for each local your bot's users may come from.

https://developers.facebook.com/docs/messenger-platform/messenger-profile/persistent-menu



来源:https://stackoverflow.com/questions/39000480/choosing-the-language-for-the-persistent-menu-with-facebook-messenger-bot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!