问题
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