Microsoft Bot Framework的Bing位置控制:Facebook Messenger中的键入地址不起作用 [英] Bing Location Control for Microsoft Bot Framework: Typing address in Facebook messenger does not work

查看:126
本文介绍了Microsoft Bot Framework的Bing位置控制:Facebook Messenger中的键入地址不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Microsoft Framework bot Sdk for C#构建机器人.我已将漫游器连接到Facebook频道.我已经将内置的位置对话框选择器实现为FB Messenger的位置选择器GUI对话框,如下所示:

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) => {...});

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

但是,当我尝试输入地址时,它会再次提示消息点击发送位置以继续;键入或说取消以退出". Facebook对话框图片

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?

推荐答案

您可以使用来自Facebook Messenger的位置

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

这篇关于Microsoft Bot Framework的Bing位置控制:Facebook Messenger中的键入地址不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆