All questions related to chatbot development on the Facebook Messenger platform.
Questions tagged [facebook-messenger-bot]
795 questions
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
2 answers
Geting the photo sent from Facebook Messenger Charbot to Amazon Lex
Is there a way to receive or get the image sent from Facebook Messenger Chatbot to Amazon Lex?
Currently when I send an image to my chatbot in Facebook Messenger it doesn't reply or have the "seen" status.

Jeffrey Monte
- 680
- 1
- 5
- 12
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",
…

Rohan Sood
- 3
- 2
0
votes
1 answer
FB Bot - Adding pages_messaging_subscriptions to existing public bot
I have an approved Facebook Messenger Bot live and public. Now I have added a subscription functionality to my bot in a development environment and want to integrate it into my live version.
My question is now regarding the review process. As…

oschwarzpdm
- 174
- 10
0
votes
1 answer
How to receive update if someone blocks Facebook Messenger Bot?
So I have created Messenger bot. Is there a way to receive webhook when someone who was interacting with bot has blocked it? Similar to how you can set up webhook when someone uninstalls facebook app.
When a user first interacts with the bot I store…

Kārlis Janisels
- 1,265
- 3
- 18
- 41
0
votes
1 answer
Integrate Api.ai in already functioning Facebook Messenger Bot
I have already created a Facebook messenger bot without using any AI technology integration. Currently the bot simply replies from the limited conditions i have put.for eg, reply with time when someone types 'time', or greet when someone type 'Hi'.…

Himanshu Kantharia
- 11
- 3
0
votes
1 answer
Unable to send button template as response on Facebook Messenger Platform (Node.js)
I am developing a chatbot on the Facebook Messenger Platform using Node.js. This is my functioning code for setting up a text response:
const fbReq = request.defaults({
uri: 'https://graph.facebook.com/me/messages',
method: 'POST',
json:…

Rahul Mukherji
- 189
- 8
0
votes
4 answers
Facebook new nested persistence menu not working
I want to use nested menus for a Facebook bot, but the new API to set the persistent menu does not work.
Even if I remove the nested menu, Facebook returns "success" but the Facebook page does not show the menu.
If I use the old API on…

James
- 17,965
- 11
- 91
- 146
0
votes
0 answers
Facebook Messenger Bot : Socket hang up exception while sending message back to user using nodejs?
I have taken a example fb mot from git set up the node js app and subscribed to webhooks.
Below is the code :
'use strict';
const express = require('express')
const bodyParser = require('body-parser')
const request = require('request')
const app =…

FMBot Dev
- 3
- 1
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 =…

rizkiaditya24
- 35
- 3
- 7
0
votes
1 answer
Sending Facebook messenger bot message between pages
Given 2 facebook pages A and B, with a shared app and bot, I need to be able to forward all messages that the bot receives on page A to page B, in such a way that all moderators on page B can view the messages.
Is this possible? I think the issue…

D. Anderson
- 1
- 1
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
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",
…

Shabin Muhammed
- 1,092
- 2
- 18
- 29
0
votes
1 answer
fb messenger bot: bot ask user for answers
Currently, I've a Python code. That process the incomming message from a Facebook messenger User. But this is a pasive chat against the chat bot. I'd like to do the following.
User: Pay
Bot: Please type the username of the person you want to…

Eddwin Paz
- 2,842
- 4
- 28
- 48
0
votes
2 answers
How to use Facebook's Account Linking feature to verify that the messenger user is a registered user of my website?
I need to check if the messenger user already has an existing account to my website before they can proceed to a certain action in the app.
In my website, a user can login via Facebook then after their first successful login, their facebook id is…

Jay
- 405
- 7
- 15