Closed unigazer closed 6 years ago
Instead of 'FB_ACCESS_TOKEN' you need to grab the env vars like process.env.FB_ACCESS_TOKEN
if you set heroku config:set FB_ACCESS_TOKEN=yourpagetoken
. Same with the other two values.
The variables are not the problem, the problem is that the app keeps crashing. As soon as I tried with the original Facebook code, it worked upon first try. https://github.com/fbsamples/messenger-platform-samples
The link you gave is not bootbot.
Is the code you showed above the code for your bot? If it is, you are using the env vars incorrectly.
If it isn't the code for your bot, can you paste the code for your bot that instantiates the BootBot
instance.
I've tried to use bootbot-cli and now when I go to http://localhost the browser says Cannot GET /
This is because the /
route is not served by the webserver (express) that is created by bootbot.
Hello,
I've followed the documentation on how to build your bot, I've got a successful connection with webhook while using
ngrok
.But when I try to connect the bot with Heroku, I get this error
and can't find the related issue on Google, only for this repository jw84/messenger-bot-tutorial , but it seems that nobody has faced a similar issue. Tried to look for answers on stack overflow, without success.
I was searching for these terms on Google:
curl_errno = 28 Heroku Node.js
, not helpful.This is the log from Heroku
and this is the
index.js
The config vars are configured properly on Heroku.
Is this a bug or did I missed something?
UPDATE
I've tried to use
bootbot-cli
and now when I go tohttp://localhost
the browser saysCannot GET /
and if navigate tolocalhost/webhook
it saysForbidden
though that's because of the verification token.