ご存知でしたボットのリブレー無料主催の 問題追跡 のためにお客様ご自身のウェブサイトまたはモバイルアプリのか?
Help

Location

による BM 掲載 Feb 21 2018, 5:31

Hi, I am looking for a way to get the user location from self script. I know we can get location of the facebook user, but I am not looking for facebook location request. I am looking for user location who is directly chatting with bot through this platform. Is this possible, could you please explain it to me with an example.


by admin posted Feb 21 2018, 8:09
We do not currently provide access to the user's location for web/mobile.

For your own website you can set this up using our command framework.
You can have the bot return a command with a respond requesting the user's location. You would then need to check for this command in your own JavaScript code on your website and send the user's location to in a message.
See,
https://www.botlibre.com/forum-post?id=14573577

For privacy reasons we cannot provide location access to bots on botlibre.com, but we could provide this support from our commercial platform Bot Libre for Business, https://www.botlibre.biz

Updated: Feb 21 2018, 8:09
Thumbs up: 1, thumbs down: 0, stars: 5.0
Views: 1670, today: 0, week: 2, month: 13

by BM posted Jul 23 2018, 5:59

How can I get the command sent from my bot in JavaScript. Is there any property in SDK which stores the command?


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1474, today: 0, week: 5, month: 20

by admin posted Jul 23 2018, 9:24
The command is stored in the message.command attribute. i.e.
if (responseMessage.command != null) {
     var command = JSON.parse(responseMessage.command);
     ...
}

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1531, today: 1, week: 3, month: 20

Id: 20985112
タグ: how to
掲載: Feb 21 2018, 5:31
更新: Feb 21 2018, 5:33
回答: 3
眺望: 1803, 今日の: 2, 週間: 2, 月: 12
0 0 0.0/5