facebook-messenger

Botframework publish to azure error. “No such host is known”

六眼飞鱼酱① 提交于 2019-12-11 15:02:49
问题 Hello i publish my bot to azure and have this error when i tested it on messenger. I downloaded the publish settings on my azure app and import it to the bot via Visual Studio. I have done this many times before but this is my first time publishing on the latest botframework design. This bot is working fine on bot emulator including luis, qnaMaker and dispatch services. I saw this question but LuisAPIHostName in my appsettings.json is already set to region. Any idea how to solve this? Thank

Persistent menu not showing in Facebook Messenger chat bot

孤街浪徒 提交于 2019-12-11 12:24:56
问题 As I don't know why suggested, using Postman. Per docs, have succesfully POSTed the configuration to facebook APIs: which is not supposed to be anyways locale specific. Even I don't see here Localization: Developers can now provide text in multiple languages (or entirely different menus) for each local your bot's users may come from. Like my brother, I have tried almost everything so far This looks like some crazy bug. Is there some work around to add a simplest persistent menu? 回答1: Wasted 2

Facebook PHP Messenger Bot - receive two messages

末鹿安然 提交于 2019-12-11 08:16:35
问题 I would like to write messenger bot based on this script: <?php $challenge = $_REQUEST['hub_challenge']; $verify_token = $_REQUEST['hub_verify_token']; // Set this Verify Token Value on your Facebook App if ($verify_token === 'testtoken') { echo $challenge; } $input = json_decode(file_get_contents('php://input'), true); // Get the Senders Graph ID $sender = $input['entry'][0]['messaging'][0]['sender']['id']; // Get the returned message $message = $input['entry'][0]['messaging'][0]['message'][

Facebook Messenger Platform Setup

我怕爱的太早我们不能终老 提交于 2019-12-11 07:32:39
问题 I have a general question regarding the setup for a "bot" in the Facebook Messenger Platform. If I understand the architecture right, I can create an App as a developer add the Messenger function and associate 1 Page with the Messenger function. Does this mean I need an app for each page ? Or could I crete a "bot backend" serving multiple / different pages from different users ? 回答1: Yes, you can have one robot serving multiple pages. You just have to set < token > for different pages in API

Facebook Messenger not showing up with UIActivityViewController

 ̄綄美尐妖づ 提交于 2019-12-11 02:37:55
问题 I am using UIActivityViewController in my app to provide options for users to share some text. Apps like facebook, twitter, whatsapp once installed they automatically show up as options with UIActivityViewController, but not Facebook Messenger. Any special set up I need to do with Messenger? I am using objective c. 回答1: According to: Can't share text to fb messenger using UIActivityViewController In order to make Facebook Messenger appear you need to insert NSURL into UIActivityViewController

Are Facebook Messenger pop-up webviews supported on desktop browsers?

帅比萌擦擦* 提交于 2019-12-10 23:30:37
问题 I am able to use Messenger webviews on the IOS Messenger app (configured as described in the documentation), but in the desktop browser the webViews always open in a new page. Am I doing something wrong, or does Messenger in desktop web browsers simply not support the webview display modes like "compact" or "tall"? 回答1: As of today, it is now doable. To make a pop-up webview instead of opening a new tab, you will need to: 1) Set up proper X-Frame-Options HTTP response header to allow your

Choosing the language for the Persistent Menu with facebook messenger bot

血红的双手。 提交于 2019-12-10 22:33:12
问题 I'm currently doing a bot for Facebook messenger. My bot is multi language but the problem is that I can't find a way to change the language in the bot menu according to the user. Do you have any idea how to fix that issue? I can't find any solution: https://developers.facebook.com/docs/messenger-platform/thread-settings/persistent-menu 回答1: If you're supporting 10 or less languages, one solution could be to at the beginning of each conversation, send a message and have them choose their

Facebook Messenger API: Send Structured Message

孤人 提交于 2019-12-10 19:50:34
问题 When following this example. messageData = { "attachment": { "type": "template", "payload": { "template_type": "generic", "elements": [{ "title": "First card", "subtitle": "Element #1 of an hscroll", "image_url": "http://messengerdemo.parseapp.com/img/rift.png", "buttons": [{ "type": "web_url", "url": "https://www.messenger.com/", "title": "Web url" }, { "type": "postback", "title": "Postback", "payload": "Payload for first element in a generic bubble", }], },{ "title": "Second card",

Facebook Messenger Platform - Detect user typing

对着背影说爱祢 提交于 2019-12-10 19:21:07
问题 When developing bots, it's common practice to show typing indicator to user, while bot is working on background, but is it possible to detect opposite situation: whether USER is typing or idle? I could not find any info in docs or google. Does anybody know how to achieve that? 回答1: This currently can't be done. You can only show the user that you are typing. "typing_on" and "typing_off" for the sender_action. 回答2: I made it using twisted way, Using image processing i take screenshot and see

Bot Framework openUrl not working for suggested action on messenger

爷,独闯天下 提交于 2019-12-10 14:54:32
问题 I am creating facebook bot using Bot Builder Node.js sdk and I am trying to create suggested action, which would navigate users to web page. I know, that facebook has limitation, that it redirects only to https endpoints, but as the the page I am redirecting to is https, this is clearly not a problem. Here is my code: var msg = new builder.Message(session) .text("User message here") .suggestedActions( builder.SuggestedActions.create( session, [ builder.CardAction.imBack(session, "command1",