Questions tagged [facebook-chatbot]

Chatbots provide personalized, interactive communication akin to talking to a human customer service or sales representative, but at a bigger scale and cheaper than call centers.

Setup

For this integration, you will need the following:

  • Facebook App: The Facebook App contains the settings. This is where you will set up your webhook, retrieve your page access token and submit your app for approval.

  • Facebook Page: A Facebook Page will be used as the identity of your bot. When people chat with your bot, they will see the Page name and the Page profile picture.

  • Webhook URL: We use secure callbacks in order to send you messaging events. These will be sent to your webhook.

Complete Guide

336 questions
16
votes
11 answers

Facebook Messenger bot not sending messages in order

I'm playing around with building a simple Facebook Messenger chatbot and I'm having trouble sending messages in sequence. In the example above, it should have printed "Hello!", "1", "2", "3" in order. I'm currently following the Facebook docs found…
Brian
  • 7,955
  • 16
  • 66
  • 107
12
votes
5 answers

What is the right way to save/track state inside a Facebook Messenger bot?

If my bot asks different questions and if the user answers each of them, how do I find out which answer relates to which question. There is a field called metadata that you can attach to the sendTextMessage API but when the user responds, this…
PirateApp
  • 5,433
  • 4
  • 57
  • 90
11
votes
1 answer

Rich text format for response text in facebook chatbot

I want to format(change font size/text color/apply text style - bold/underline/italic etc) the response text send to user in Facebook chatbot. I do not see any such support in the messenger API. Just wanted to confirm if its supported or not? Is…
picku
  • 157
  • 3
  • 9
11
votes
2 answers

How to send location from Facebook messenger platform?

There is a way to send my location to facebook-messenger from a mobile client, but how can I send some location from a bot? (messenger platform api) When I try to send a similar structure from bot, I get an error: (#100) Unsupported attachment…
Dmitry
  • 2,057
  • 1
  • 18
  • 34
10
votes
4 answers

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

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…
10
votes
10 answers

how to setup "Get started" button in facebook messenger bot and when to send welcome message

"Get Started" tried sending request to this url https://graph.facebook.com/v2.6/PAGE_ID/thread_settings?access_token=PAGE_ACCESS_TOKEN But didn't work.
kanth
  • 141
  • 1
  • 1
  • 7
8
votes
2 answers

Facebook Messenger Chatbot Custom Event Tracking

I am trying to log custom events with a Facebook Chatbot I have developed, however I cannot for the life of me find a reference for the custom_events types. The example listed on their reference shows fb_mobile_purchase as a custom eventName. I…
Alex McCabe
  • 1,852
  • 2
  • 20
  • 33
7
votes
1 answer

How do I create multiple Facebook bots with a single platform?

I have a Facebook bot and I have connected it with a Facebook page. However to have it publicly available I have to wait the approval from Facebook. Not a problem if you have to make one single bot, huge problem if you have to do it on scale level…
7
votes
2 answers

Facebook messenger chatbot shows "Check your connection and try again."

Recently, I was trying to build a bot for myself. It works flawlessly when I'm using ngrok to test my bot locally, but when I deployed to AWS, I started seeing the error captured below occasionally, and causing no webhook request sent to my server…
Roy
  • 383
  • 4
  • 15
6
votes
3 answers

How to implement Facebook Messenger customer chat SDK in Nuxt, Vue?

i was doing this implementation with Facebook Messenger customer chat SDK into my Nuxt app. Solution 1 (worked 0%): I tried the https://www.npmjs.com/package/vue-fb-customer-chat package, and it didn't work, the package's site itself is down -.-! i…
6
votes
2 answers

How to generate a URL for chatting with a user in a Facebook page using the page scoped id PSID

We have a chatbot on Facebook Messenger Platform, we want to provide the admins an URL to chat with a specific user, for example: https://facebook.com//u/ Currently when opening a chatting thread in a Facebook page URL is…
6
votes
0 answers

How to allow loading a page in iframe on Messenger and Facebook domains

I am using iframe to display a page on facebook Messenger web following the below article : https://developers.facebook.com/docs/messenger-platform/webview/extensions#webview_on_web I already whitelisted my domain but now I want to allow the…
6
votes
1 answer

How can I get users to select multiple options as input within a facebook messenger chatbot?

I am working on a form-fill bot, which takes takes user input in free text format, throws 3-4 relevant set of questions and give the relevant search results from the website. In this process, how can I collect information from users for questions…
6
votes
4 answers

How to remote debug a node.js app on heroku?

I'm currently building a node.js chatbot which I then deploy on heroku. The app uses webhooks which must be at a public URL that the servers can reach. Therefore, running the server locally on my machine will not work. Is there a way I can remote…
Adrian Krebs
  • 4,179
  • 5
  • 29
  • 44
6
votes
3 answers

What user profile info is available on the Facebook Messenger Platform?

The messenger platform docs shows an example of how to get the user profile info via their API (see this). I could quite understand if the example shown actually contains all the info possible to retrieve (meaning: first_name, last_name,…
Shaish
  • 714
  • 2
  • 10
  • 21
1
2 3
22 23