facebook-messenger

Facebook Messenger Bot - How to disable bot and allow human to chat

大城市里の小女人 提交于 2019-12-05 16:31:44
问题 so this is something I've been trying to think through for about 16 hours. I am coding with PHP / CuRl / etc - the bot works and everything is fine. My current issue is figuring out how to disable the bot and allow a human to begin chatting with the customer/sender. Has anyone successfully, created a route for this ? I mean it's pretty hard from what I see, you'd have to disable etc etc. A lot of effort for my clients. Thanks for any input. 回答1: Facebook has rolled out a "Handover Protocol"

Facebook Messenger webhook source IP whitelist

感情迁移 提交于 2019-12-05 13:46:03
I am creating a chatbot on Facebook Messenger. I have configured a webhook which is working fine. Is there a way to get the list of source IPs to whitelist on my firewall? My security team is not comfortable in opening the webhook to the entire internet. We do plan to use the X-Hub HMAC validation, however restricting the source IP to a a finite number of IP or IP ranges or Domain would keep the security guys off me. Facebook publish their list of IP addresses via an endpoint that can be queried like this: whois -h whois.radb.net -- '-i origin AS32934' | grep ^route Note however that their IP

Are Facebook Messenger page-scoped IDs globally unique?

痴心易碎 提交于 2019-12-05 13:21:22
I understand that the same user will have different page-scoped IDs (PSIDs) across different pages. But is it guaranteed that no two users will have the same PSID across different pages? For example, is it possible that user A has PSID 1234 while messaging page X, and user B has the same PSID 1234 when messaging page Y? Technically user A and user B would be differentiable even if they have the same PSID because they are messaging different pages. But can I assume that there will be no overlap on PSIDs across all pages, so that I may use the PSID as a globally unique ID regardless of the

URL Button with Messenger Extensions always redirect to fallback_url

℡╲_俬逩灬. 提交于 2019-12-05 06:47:22
问题 Working on a facebook messenger chatbot , I try to use Webview and Extensions to display enhanced content (in my case, a datepicker) . As describe in documentation, I send a URL Button with Messenger Extensions message, with a fallback_url to handle browser users. { 'type': 'web_url', 'url':'https://abcdef.localtunnel.me/html/chatbotDatepicker.html', 'title': 'Pick a date', 'webview_height_ratio': 'tall', 'messenger_extensions': true, 'fallback_url': 'https://abcdef.localtunnel.me/html

“Get Started” button does not appear in welcome screen for FB Messenger bot

自古美人都是妖i 提交于 2019-12-05 01:21:58
I followed the solution in this thread and it is still not working how to setup "Get started" button in facebook messenger bot and when to send welcome message I tried both graph.facebook.com/v2.6/me/thread_settings?access_token=xxxxx and graph.facebook.com/v2.6/page_id/thread_settings?access_token=xxxxx with the raw body { "setting_type":"call_to_actions", "thread_state":"new_thread", "call_to_actions":[ { "payload":"USER_DEFINED_PAYLOAD" } ] } The response message is like this { "result": "Successfully added new_thread's CTAs" } But the message in welcoming screen just keep displaying "Type

FB Messenger Message Template

穿精又带淫゛_ 提交于 2019-12-04 17:11:55
How can I achieve this template in fb messenger platform? It seems that the color of the shirt and the price are both subtitles of the message but there can only be 1 subtitle in a message. So how can achieve where there are two subtitles? This is my current message tempalate "message":{ "attachment":{ "type":"template", "payload":{ "template_type":"generic", "elements":[ { "title":"Classic T-Shirt", "image_url":"http://petersapparel.parseapp.com/img/item100-thumb.png", "subtitle":"Medium Grey %0D%0A s", "buttons":[ { "type":"web_url", "url":"https://petersapparel.parseapp.com/view_item?item

How do I change facebook messenger bot webhook?

只愿长相守 提交于 2019-12-04 14:55:54
问题 I have successfully implemented a facebook bot. It's working fine. I was trying to change the webhook url now as I have to port it to a different server with a new domain. There is an option to change the events but I could not find and option to change the webhook. How do I change it? 回答1: You can't edit the link directy from the "Messenger" product. On the left menu, after selecting your application, you have to click "+ add product" and add also webhooks. From webhooks then you can edit

Facebook Chat Bot - How do I test the welcome message?

女生的网名这么多〃 提交于 2019-12-04 11:57:48
问题 My chat bot is working great but I am having trouble debugging the Welcome message functionality because it only shows up when a conversation is initiated (although i'm pretty sure it's not working having tried it on a colleagues phone). How do I reset my chat so it sees me as a new user interacting with it? This is my welcome PHP Script at the moment <?php function webhook() { $challenge = $_REQUEST['hub_challenge']; $verify_token = $_REQUEST['hub_verify_token']; if ($verify_token ===

Facebook Messenger API: Trouble setting up a webhook

独自空忆成欢 提交于 2019-12-04 10:11:44
问题 I am trying to set up a web hook for the new Facebook Messenger bot platform on my PHP webserver and am receiving this error: The URL couldn't be validated. Response does not match challenge, expected value = '364011207', received=' Resources https://developers.facebook.com/docs/messenger-platform/quickstart https://developers.facebook.com/docs/messenger-platform/webhook-reference#common_format Any help is greatly appreciated. 回答1: I came across a fix. I scrapped my js attempt and created a

Refused to display… frame-ancestors https://www.facebook.com

社会主义新天地 提交于 2019-12-04 08:15:33
问题 I have included Facebook customer chat plugin on my website. It works fine for the first day. From the second day, it's not working. I have seen an error message in Google Chrome console: Refused to display 'https://www.facebook.com/v2.11/plugins/customerchat.php?app_id=214160985792954&channel=https%3A%2F%2Fstaticxx.facebook.com%2Fconnect%2Fxd_arbiter%2Fr%2FlY4eZXm_YWu.js%3Fversion%3D42%23cb%3Df157c0f5ff1898c%26domain%3Dwww.fast-pay.cash%26origin%3Dhttps%253A%252F%252Fwww.fast-pay.cash