Questions tagged [facebook-messenger]

Facebook Messenger is an instant messaging service and software application which provides text and voice communication. Integrated with Facebook's web-based Chat feature and built on the open-source MQTT protocol, Messenger lets Facebook users chat with friends both on mobile and on the main website. Information from : Wikipedia

Facebook Messenger is an instant messaging service and software application which provides text and voice communication. Integrated with Facebook's web-based Chat feature and built on the open-source MQTT protocol, Messenger lets Facebook users chat with friends both on mobile and on the main website.

Information from : Wikipedia

1290 questions
0
votes
1 answer

Facebook API send element_share payload?

I'm building a Node.js ChatBot with Wit.ai on Messenger and I just want to know if it's possible to track user action when they open The Share part on Messenger. "recipient":{ "id":"USER_ID" }, "message":{ "attachment":{ …
0
votes
0 answers

Facebook API send private message from page

I need to send private message from my page (i am the admin) to user who already contacted my page My reference on that this link https://developers.facebook.com/docs/messenger-platform/send-api-reference I am testing this feature via Facebook…
0
votes
1 answer

Messenger Bot: TypeError: Cannot read property 'text' of undefined

I am getting started on a messenger bot and am getting the above error. I have the following code: app.post('/webhook', (req, res) => { console.log(req.body); if (req.body.object === 'page') { req.body.entry.forEach((entry) => { …
Koh
  • 2,687
  • 1
  • 22
  • 62
0
votes
1 answer

Wit.ai node package buggy

I was working with wit.ai today. I was using the node-wit module. But the responses I was acting were very weird. When I used the node-wit module. I got the response as - { "msg_id": "0f4rOWRXQMIhVuf5i", "_text": "what is your name", …
0
votes
1 answer

How to properly use setTimeout and Promises in Messenger

I want to send a series of messages through a Messenger bot with some time in between and show the typing effect. Currently I have this code: sendTextMessage(recipientId, `Howdy ${snapshot.child("userDetails/firstName").val()}! I’m Marco :)`) …
ocram
  • 1,384
  • 6
  • 20
  • 36
0
votes
1 answer

How do you handle a postback from the messenger persistent menu in the MS Bot Framework

How do you handle a postback from the messenger persistent menu in the MS Bot Framework? I have not been able to see any channel data. Please can someone tell me how this event is handled.
Mrakulis
  • 91
  • 8
0
votes
1 answer

MS BotFramework Sign-In Redirection fail in Messenger Webview

I made a Sign-In Card using the Microsoft Bot Framework. The Sign-In button OpenURL to Login of Microsoft Graph The user write it's credential A message ask him to accept the Microsoft App Then it is redirected to a thanks page (the access token si…
Jean-Philippe Encausse
  • 1,491
  • 2
  • 22
  • 40
0
votes
1 answer

Facebook Messenger Opt In button only appears sometimes

I am trying to put a facebook messenger 'send to messenger' button onto my site. So far, I have been making changes, and the button appears occasionally, but most of the time it doesn't. The code I've got to load it is here:
Tom Neill
  • 41
  • 7
0
votes
2 answers

Python keeps KeyError: 'message' when fetch data from Messenger Callback - Python/flask

I've tried to build a simple bot on Messenger that echoing back whenever we send a message to it. The message is sent successfully so far but in the log, it keeps displaying error: message_id =…
0
votes
0 answers

Facebook Get Started Button not rendering for new user(non developer)

Facebook get started button is not rendering for users who are not added in app developer account. I can see get started button working for users having any role assigned to them in app developer console. But same is not working for general users…
ifti
  • 649
  • 1
  • 11
  • 25
0
votes
0 answers

Handling multiple facebook pages

I'm currently developing a bot for messenger, it works just fine for my page, now the thing is, we'd like that bot to work for multiple pages, even pages that are not ours, so a couple of questions: How can I add others pages to my messenger…
0
votes
2 answers

"image_aspect_ratio" flag not respected while sharing from Messenger BOT webview

I'm trying to make a share from the webview of my bot. Here's my code var messageToShare = { "attachment":{ "type":"template", "payload":{ "template_type":"generic", …
0
votes
2 answers

Node.js MongoDB insert error

function uploadVote(voter, vote){ MongoClient.connect(url, function(err, db){ if (err) throw err; db.collection('testvote', function(err, collection) { collection.find({"psid": voter}).toArray(function(err, result) { …
brain_team
  • 31
  • 8
0
votes
0 answers

Publishing A Facebook Messenger Bot through Facebook API

One of my recent project needs to create custom chat bots for facebook messenger. The user can login to the system and create a bot with different interactions and finally publish the bot to facebook. There are a couple of companies that are doing…
0
votes
0 answers

Generic Template Image Does not Appear in App Messenger Bot

I am loading image for the generic template from my database, the image is shown in web version of messenger but is not loaded in the Android App. I am loading the image from my site hosted on app engine and the site has a SSL certificate
Aditya Borde
  • 1,227
  • 2
  • 12
  • 31