Bing Location Control for Microsoft Bot Framework: Typing address in Facebook messenger does not work

巧了我就是萌 提交于 2019-12-23 18:44:52

问题


I am building bot with Microsoft Framework bot Sdk for C#. I have connected bot to Facebook Channel. I have implemented built in location dialog picker as FB Messenger's location picker GUI dialog as following:

var apiKey = WebConfigurationManager.AppSettings["BingMapsApiKey"];
var prompt = "Where should I ship your order? Type or say an address.";
var locationDialog = new LocationDialog(apiKey, message.ChannelId, prompt, 
LocationOptions.UseNativeControl | LocationOptions.ReverseGeocode);
context.Call(locationDialog, (dialogContext, result) => {...});

(code from https://github.com/Microsoft/BotBuilder-Location/blob/master/CSharp/README.md)

However, when I try to type in the address it re prompts the message "Tap on Send Location to proceed; type or say cancel to exit." Facebook dialog picture

I do not understand why it does not allow me to type in the address?


回答1:


You can use location from Facebook Messenger docs to get this done.



来源:https://stackoverflow.com/questions/44036803/bing-location-control-for-microsoft-bot-framework-typing-address-in-facebook-me

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