A hubot adapter for the new messenger platform
MIT License
Not maintained anymore, better use : https://github.com/chen-ye/hubot-fb.
Facebook has just announced its new platform for messenger. This is a hubot adapter for the new bot api.
npm install --save hubot-messenger-platform
HUBOT_MESSENGER_VERIFICATION_TOKEN=<verification_code> HUBOT_MESSENGER_PAGE_ACCESS_TOKEN=<page_access_code> ./bin/hubot -a messenger-platform -n ""
.https://<your_domain>/webhook
. Choose all the events and verify.curl -ik -X POST "https://graph.facebook.com/v2.6/me/subscribed_apps?access_token=<page_access_token>"
to subscribe your app to get updates from this page.And Done. Now whenever you send a message to your bot's page inbox, hubot will process it and send the response back.
For more info, check facebook's official guide.
http://localhost:8080
assuming that the reverse proxy is running on the same host as hubot. If you started hubot specifying the PORT
env var, this will override the default 8080
port.-n ""
flag when starting hubot, doesn't give the bot a name. So instead of sending Hubot ping
to it, you'll just send ping
....
.Your contributions are welcome through pull requests or issues.