facebook-messenger

Facebook messenger bot error nonexisting field (messages)

女生的网名这么多〃 提交于 2019-12-22 14:40:07
问题 I am a new member. I have an error when send message using HTTP Post to "graph.facebook.com/v2.11/me/messages?access_token=MY_PAGE_TOKEN" This is error return: `{"error":{"message":"(#100) Tried accessing nonexisting field (messages) on node type (Page)","type":"OAuthException","code":100,"fbtrace_id":"EB39Xkxnf6O"}}` Despite error, tester and developer still able to receive message. But the FB viewer might not and they not approve my review submission: "We did not receive an automated

Facebook messenger bot error nonexisting field (messages)

青春壹個敷衍的年華 提交于 2019-12-22 14:38:08
问题 I am a new member. I have an error when send message using HTTP Post to "graph.facebook.com/v2.11/me/messages?access_token=MY_PAGE_TOKEN" This is error return: `{"error":{"message":"(#100) Tried accessing nonexisting field (messages) on node type (Page)","type":"OAuthException","code":100,"fbtrace_id":"EB39Xkxnf6O"}}` Despite error, tester and developer still able to receive message. But the FB viewer might not and they not approve my review submission: "We did not receive an automated

Messenger Bot Fails to Respond

早过忘川 提交于 2019-12-22 10:58:07
问题 My bot has been approved and is available publicly (see image), but it does not respond to anyone besides the developer. I have it hosted on Heroku. I have tried to debug it with a ton of console logs, and I have realized that it doesn't log the "Enter App.Post" (see below) when any one other than the developer sends it a message. Has anybody else experienced this behavior? /// Facebook verification app.get('/webhook/', function (req, res) { if (req.query['hub.verify_token'] === '************

Facebook Messenger webhook source IP whitelist

不想你离开。 提交于 2019-12-22 09:39:01
问题 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. 回答1: Facebook publish their list of IP addresses via an endpoint that can be

Are Facebook Messenger page-scoped IDs globally unique?

拜拜、爱过 提交于 2019-12-22 08:22:46
问题 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

Can a Facebook Messenger Bot chat with two or more people in a group?

与世无争的帅哥 提交于 2019-12-22 06:47:04
问题 Do all messenger bots interact directly with just one user at a time? Can a bot join a group of two or more people and talk to them? 回答1: Currently Facebook Messenger bots only work on a one to one basis. One of the reasons is probably privacy. Facebook are being very cautious before rolling out bots in a group context. 回答2: Currently facebook does not allow to add bots in groups, however you can add bots in groups in Telegram. 来源: https://stackoverflow.com/questions/40205889/can-a-facebook

Access Facebook Messenger User Profile API in DialogFlow

北城余情 提交于 2019-12-21 20:36:19
问题 I'm building a cross-platform chatbot in Google's DialogFlow. I'd like to access the Facebook User Profile API to learn the user's first name. I'm struggling to find advice on how (or if) I can make this happen. https://developers.facebook.com/docs/messenger-platform/identity/user-profile/ Has anybody here achieved this? 回答1: I did that for one of my bots yesterday, you need 2 things, first the Page Token and second is the psid which is Page scope user ID. On dialogflow, you will receive the

How to show personalized 'Welcome Message' in facebook messenger?

╄→尐↘猪︶ㄣ 提交于 2019-12-21 17:58:26
问题 I would like to show 'welcome message' like 'Hi Robert, welcome to my application'. So I need to send: "https://graph.facebook.com/v2.6/USER_ID?fields=first_name,last_name,profile_pic,locale,timezone,gender&access_token=PAGE_ACCESS_TOKEN" using 'first_name' from 1st request, send "https://graph.facebook.com/v2.6/PAGE_ID/thread_settings?access_token=PAGE_ACCESS_TOKEN" request to set 'welcome message'. However, I need to know user_id before first request. My questions: What are steps to create

How to do Facebook Messenger Bot development locally?

六月ゝ 毕业季﹏ 提交于 2019-12-21 07:57:14
问题 When setting webhooks, it's saying a Secure URL is required. 回答1: I am using ngrok to tunnel a localhost address. There is an example here: https://github.com/wit-ai/node-wit 回答2: I created a library that tries to solve this exact problem! With fb-local-chat-bot you can easily test your bot offline. One nice thing is that you can get started on development WITHOUT even connecting with Facebook. The library also makes testing much more simple. If you're interested, definitely check it out

Weird error with Facebook Messenger Platform/bot Welcome Confugration

痞子三分冷 提交于 2019-12-20 11:48:21
问题 I'm getting a weird error while configuring welcome message for my Messenger bot. I've been using the same code (as shown below) and it has just been working fine until last night. I tried it with both cURL and Postman. Neither of them works. curl -X POST -H "Content-Type: application/json" -d '{ "setting_type":"call_to_actions", "thread_state":"new_thread", "call_to_actions":[ { "message":{ "text":"Welcome to My Company!" } } ] }' "https://graph.facebook.com/v2.6/<PAGE_ID>/thread_settings