cher-facebook
A source stream implementation for cher
Requirements
- Node >= 4.2.1
- npm >= 3.3.3
Install Dependencies
$ npm install
Usage
const Cher = ; const tools = ; const cherFacebook = ; const save = toolspipelinesave; // config helper const config = toolsutilsconfig; // Cher streams get configured here. const sourceStreams = name: 'facebook' module: cherFacebook ; config ;
Tests
Setup some environment variables
$ echo "FACEBOOK_CLIENT_ID=<your_client_id>" >> test/test.env
$ echo "FACEBOOK_CLIENT_SECRET=<your_client_secret>" >> test/test.env
$ echo "facebookAccessToken=<your_really_long_access_token>" >> test/test.env
$ echo "PAGES=<a_fb_page_id>" >> test/test.env
$ echo "POSTS=<a_fb_post_id_with_comments>" >> test/test.env
Run em'
$ npm test