messenger

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

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

Integrate Facebook Messenger into Unity

不打扰是莪最后的温柔 提交于 2019-12-13 05:18:04
问题 How integrate sharing via Facebook Messenger in Unity game. I have olready try to use Facebook Unity SDK 6.2.2 and 7.0.2 beta. Does Facebook SDK support it? 回答1: This is not possible at the current time via the Unity SDK. Right now there is no support for the Messenger SDK as it is only available for Android and iOS. In the current versions of the Facebook Unity SDK the only options you have for sharing/sending requests are the FB.Feed and FB.AppRequest methods. 来源: https://stackoverflow.com

Using MVVM Foundation Messenger to Show Dialog

不问归期 提交于 2019-12-12 09:41:23
问题 I'm building a WPF app and trying to conform to MVVM best practices. I'm using the MVVM Foundation framework and noticed the Messenger class, which I've read should be used for handling dialogs in WPF. This sounds great, but I'm totally not understanding how to use a Messenger for this purpose. Literally, all I want to do is open a modal About dialog --I don't need to pass any messages back and forth. Was the intent of the Messenger class to be used for cases where dialogs require a message

Storing “Session Variables” in Facebook Messenger

余生长醉 提交于 2019-12-12 02:16:03
问题 I want to save information about a user (ex postal code, location...) for the duration of the 'session', how could I go about this? From my understanding each time a message is sent, the webhook is hit again, so variables aren't saved on the webhook side. Furthermore, meta data is only available sending from bot to client. I'm looking for a way for the client to influence the flow without the use of a database. Is this possible given the current iteration of the facebook messenger platform?

How can i get data to be pushed from the database to the client, like a messenger service?

喜欢而已 提交于 2019-12-11 22:13:25
问题 I am trying to code a messenger service that will store sent messages in a server and then push the message to all devices connected to the server. The messenger will be used in a classroom environment and the messages will never be sent to one individual device. At the moment a message can be sent and stored in the database but the app needs to be refreshed for all the messages to be displayed. A simple way would be to continuously run the stored procedure but that would require extra

Passing Objects in IPC using Messenger in Android

北城余情 提交于 2019-12-11 17:51:40
问题 I am using Messenger instead of aidl in Android for IPC. I have a service with which clients can bind . How can i pass a custom object form service to a client using Messenger Mechanism for IPC so that client can use that object to invoke operations.I know we can send simple data types using Parcelable or databundle but what about custom objects 回答1: How can i pass a custom object form service to a client using Messenger Mechanism for IPC so that client can use that object to invoke

Connect multiple Messenger ChatBot on Single Facebook App

痴心易碎 提交于 2019-12-11 15:36:53
问题 I'm managing a Facebook page and Have a Facebook validated Node.js ChatBot on it. It Works fine and now I would like to know how to duplicate this ChatBot on multiple other Facebook pages. A single App, a single ChatBot and multiple Facebook pages linked on it. For doing that, If I understood, I have to : - Collect the page.id : app.post('/webhook', (req, res) => { const data = req.body // Make sure this is a page subscription if (data.object === 'page') { // Iterate over each entry data

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