facebook-messenger-bot

Messenger ref parameter is not passed to dialogflow

て烟熏妆下的殇ゞ 提交于 2019-12-11 15:54:24
问题 I'm trying to connect messenger bot and dialogflow. The idea is - when you click on the button, service is redirecting you to the me link (example: http://m.me/2010070995927131?ref=initial_message_with_param) then dialoglflow receives initial_message_with_param as message and fullfilment can generate the response. Sending messages works at all but unfortunately, ref param doesn't. Do you have any ideas why ref param is ignored on Dialogflow side? 回答1: Been few months, but i just came across

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 Messenger subscribed apps, page and app access token generation

微笑、不失礼 提交于 2019-12-11 05:08:29
问题 I am hitting a wall while developing seamless integration of a Facebook page with my bot. Essentially I want to achieve same integration than Chatfuel or Manychat have, where being logged in with your Facebook account lets you to just choose what page you are connecting to them and you are good to go. The problem I am facing is generating the proper token in order to bind the selected page to my app (bot). As per Facebook documentation: When you create a subscribed_apps edge, the page-id you

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

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

Facebook messenger account linking, how to use it?

巧了我就是萌 提交于 2019-12-10 18:23:14
问题 There are 4 easy steps described in the documentation about account linking for the messenger platform: Register a callback URL using Log In Button. Messenger Platform invokes the registered URL when a user starts the account linking flow. The redirect_uri and account_linking_token parameters are appended to your registered callback. Once linking is complete, redirect users to the location provided by redirect_uri and append a authorization_code parameter (defined by you) to confirm linking.

Share Button In Facebook Messenger

旧巷老猫 提交于 2019-12-10 18:15:33
问题 Is it possible to create a CardAction (button) in botframework which works as a share button in Facebook Messenger? 回答1: Since the Share button is specific to Facebook and not common to all the channels, there isn't code in the BotBuilder for doing that. However it can be achieved, by using ChannelData ( C# )/ sourceEvent ( Node.js ). See this post as reference on how the channel data info should looks like. Also, this sample shows how to use the ChannelData feature. Finally, here is the

How to fix CSP issues with facebook messenger-checkbox

天大地大妈咪最大 提交于 2019-12-10 14:33:38
问题 I'm trying to make facebook messenger checkbox work, I've added the following code to my html window.fbAsyncInit = function() { FB.init({ appId: "{{ fb_app_id }}", xfbml: true, version: "v2.6" }); FB.Event.subscribe('messenger_checkbox', function(e) { console.log("messenger_checkbox event"); console.log(e); if (e.event == 'rendered') { console.log("Plugin was rendered"); } else if (e.event == 'checkbox') { var checkboxState = e.state; console.log("Checkbox state: " + checkboxState); } else if

Domains are not being added, Whitelist domains facebook messenger extension

社会主义新天地 提交于 2019-12-08 18:57:26
I've been trying to whitelist my domains following the instruction that is given by facebook but nothing is working. I first tried with curl, the response is {result:"success"} but when I try to list the domains that are whitelisted I am getting {data:[]} Then I tried using node request module as follow: request.post("https://graph.facebook.com/v2.6/me/messenger_profile?access_token=sfdlksdfu79r9429049824982342348sjdfsf", { "setting_type": "domain_whitelisting", "whitelisted_domains": ["https://mydomainw.com", "https://mydomainw.com/profile", "https://sfujyx.com/ofr", "mydomain1.com",

Domains are not being added, Whitelist domains facebook messenger extension

試著忘記壹切 提交于 2019-12-08 06:54:33
问题 I've been trying to whitelist my domains following the instruction that is given by facebook but nothing is working. I first tried with curl, the response is {result:"success"} but when I try to list the domains that are whitelisted I am getting {data:[]} Then I tried using node request module as follow: request.post("https://graph.facebook.com/v2.6/me/messenger_profile?access_token=sfdlksdfu79r9429049824982342348sjdfsf", { "setting_type": "domain_whitelisting", "whitelisted_domains": ["https