This Facebook messenger bot was created as an entry into the Hack The Vote Hackathon which took place from 23-24 April 2016. Its purpose is to build engagement with young voters (18-25), who generally turn out less than any other demographic, by asking them for their opinions on various matters and telling them how to ensure that they are able to vote on the day.
One of the key features is integration with the represent.me API to obtain questions which may help the young voter to decide who to vote for.
- npm install body-parser express request
- Download and install ngrok from https://ngrok.com/download
- ./ngrok http 8445
- WIT_TOKEN=your_access_token FB_PAGE_ID=your_page_id FB_PAGE_TOKEN=your_page_token FB_VERIFY_TOKEN=verify_token node examples/messenger.js
- Subscribe your page to the Webhooks using verify_token and
https://<your_ngrok_io>/fb
as callback URL. - Talk to your bot on Messenger!