This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Bot = require('messenger-bot') | |
var http = require('http') | |
const bot = new Bot({ | |
token: process.env.PAGE_TOKEN, | |
verify: process.env.VERIFY_TOKEN, | |
app_secret: process.env.APP_SECRET | |
}) | |
bot.on('error', (error) => { | |
console.log(error.message) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PAGE_TOKEN=’EAAGfqT712tEBAK7bGOUSPZCYoH...’ //A really long string | |
VERIFY_TOKEN=’z-dev-demo’ | |
APP_SECRET=’2b7b02fbe0c3a5021e72b591d25549ea’ |
NewerOlder