@@ -43,46 +43,6 @@ This will give you a screen like this one:
4343
4444Locate the forwarding link (in our case ` https://3efeb72c.ngrok.io ` ). All requests to ` https://3efeb72c.ngrok.io ` will be forwarded to your bot.
4545
46- --sep--
47- ---
48- title: Set up the Facebook App
49- duration: 10
50- ---
51-
52- ## Set up the Facebook App
53-
54- To setup your chatbot on Facebook Messenger, you need three things:
55-
56- * A Facebook Page that will be used as the identity of your bot: https://www.facebook.com/pages/create
57- * A Facebook for Developers account: https://developers.facebook.com/
58- * A Facebook App
59-
60- We will cover only the configuration of the Facebook App in this tutorial.
61- For other the two first steps, please follow the tutorial [ here] ( https://developers.facebook.com/docs/messenger-platform/getting-started/app-setup ) .
62- Make note of the ** page access token** (` FB_PAGE_ACCESS_TOKEN ` ) given to you. We will use it to connect your chatbot to Messenger.
63-
64- Once your app is created, we need to setup our bot endpoint as the Messenger webhook callback URL.
65- Go to your Facebook App and click on Webhooks in the side menu:
66-
67- <img src =" https://github.com/Botfuel/tutorials/raw/master/connect-messenger/images/messenger-menu.png " alt =" Messenger Apps Menu " />
68-
69- Then click on the ` Edit Subscription ` button:
70-
71- <img src =" https://github.com/Botfuel/tutorials/raw/master/connect-messenger/images/messenger-webhook.png " alt =" Messenger Webhook " />
72-
73- Set the ` Callback URL ` field to ` <NGROK_URL>/webhook ` :
74-
75- <img src =" https://github.com/Botfuel/tutorials/raw/master/connect-messenger/images/messenger-url.png " alt =" Messenger URL " />
76-
77- Make sure that you added ` /webhook ` at the end of the URL.
78- Set the ` Verify Token ` field to the value of your choice (it can be whatever you want, as long as you use the same value when running the bot in a later step) and make note of it then click on ` Verify and Save ` .
79-
80- We will refer to the ** Verify Token** as ` FB_VERIFY_TOKEN ` .
81-
82- Also, make sure your app has subscribed to messages:
83-
84- <img src =" https://github.com/Botfuel/tutorials/raw/master/connect-messenger/images/messenger-messages.png " alt =" Messenges subscription " />
85-
8646--sep--
8747---
8848title: Set up the bot
@@ -142,6 +102,45 @@ If you set your app credentials and the config file correctly, you should see:
142102
143103It means your bot is listening to new user messages on ` http://localhost:5000 ` (and ` <NGROK_URL> ` thanks to ngrok).
144104
105+ --sep--
106+ ---
107+ title: Set up the Facebook App
108+ duration: 10
109+ ---
110+
111+ ## Set up the Facebook App
112+
113+ To setup your chatbot on Facebook Messenger, you need three things:
114+
115+ * A Facebook Page that will be used as the identity of your bot: https://www.facebook.com/pages/create
116+ * A Facebook for Developers account: https://developers.facebook.com/
117+ * A Facebook App
118+
119+ We will cover only the configuration of the Facebook App in this tutorial.
120+ For other the two first steps, please follow the tutorial [ here] ( https://developers.facebook.com/docs/messenger-platform/getting-started/app-setup ) .
121+ Make note of the ** page access token** (` FB_PAGE_ACCESS_TOKEN ` ) given to you. We will use it to connect your chatbot to Messenger.
122+
123+ Once your app is created, we need to setup our bot endpoint as the Messenger webhook callback URL.
124+ Go to your Facebook App and click on Webhooks in the side menu:
125+
126+ <img src =" https://github.com/Botfuel/tutorials/raw/master/connect-messenger/images/messenger-menu.png " alt =" Messenger Apps Menu " />
127+
128+ Then click on the ` Edit Subscription ` button:
129+
130+ <img src =" https://github.com/Botfuel/tutorials/raw/master/connect-messenger/images/messenger-webhook.png " alt =" Messenger Webhook " />
131+
132+ Set the ` Callback URL ` field to ` <NGROK_URL>/webhook ` :
133+
134+ <img src =" https://github.com/Botfuel/tutorials/raw/master/connect-messenger/images/messenger-url.png " alt =" Messenger URL " />
135+
136+ Make sure that you added ` /webhook ` at the end of the URL.
137+ Set the ` Verify Token ` field to the value of your choice (it can be whatever you want, as long as you use the same value when running the bot in a later step) and make note of it then click on ` Verify and Save ` .
138+
139+ We will refer to the ** Verify Token** as ` FB_VERIFY_TOKEN ` .
140+
141+ Also, make sure your app has subscribed to messages:
142+
143+ <img src =" https://github.com/Botfuel/tutorials/raw/master/connect-messenger/images/messenger-messages.png " alt =" Messenges subscription " />
145144
146145--sep--
147146---
@@ -160,4 +159,4 @@ Here you can test if the connection is successful:
160159
161160<img src =" https://github.com/Botfuel/tutorials/raw/master/connect-messenger/images/messenger-test.png " alt =" Messenger test " />
162161
163- Congratulations! You have connected a Botfuel Dialog chatbot to Facebook Messenger!
162+ Congratulations! You have connected a Botfuel Dialog chatbot to Facebook Messenger!
0 commit comments