Bing Location Control for Microsoft Bot Framework: Text Input in Facebook Messenger Not Working

I am creating a bot with a Microsoft Framework bot server for C #. I connected the bot to a Facebook channel. I have implemented the built-in location picker dialog as a GUI for locating FB Messenger as follows:

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 enter an address, it asks for the message β€œClickβ€œ Submit Location ”, type or sayβ€œ cancel to sign out. ” Facebook Dialog enter image description here

I don't understand why it won't let me enter the address?

+3


source to share


1 answer


You can use the location from the Facebook Messenger docs to do this.



+2


source







All Articles