A Facebook messenger bot, this bot interacts with the user using the message bot postback messages, to get information from the user fetches data from an external API and send backs information to the User
A Facebook messenger bot, this bot interacts with the user using the message bot postback messages, to get information from the user fetches data from an external API and send backs information to the User
cd
into the reponpm install
to install all dependenciesHeroku
)Add the required env
variables
VERIFY_TOKEN
: which is the token gotten from app on facebook developer dashboard used to verify the webhooksDeploy Heroku app
curl -X POST -H "Content-Type: application/json" -d '{
"get_started": {"payload": "<postback_payload>"}
}' "https://graph.facebook.com/v2.6/me/messenger_profile?access_token=<PAGE_ACCESS_TOKEN>"
PAGE_ACCESS_TOKEN
with your token of the app gotten from facebook developer dashboardWELCOME
<postback_payload>
with WELCOME