Creating a Facebook interface web app

In this step, we will create an interface that will allow our chatbot to talk to the Facebook App. In the previous section, we created a Facebook App. This app will have to talk to the interface we will be building in this section. Info about this module will have to go into the webhook settings that we have left unfinished in the previous section. We will create a new project to hold this interface app. Let us call it weatherman-fbmi. In your console, create a separate directory (weatherman-fbmi) to hold this project. In this directory, we will create the following three files:

  • index.js
  • package.json
  • Procfile

index.js is a Node.js program that acts as a web server to send and receive messages to and ...

Get Hands-On Chatbots and Conversational UI Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.