1.0.2 • Published 9 years ago

fb-posts v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

fb-posts

js-standard-style npm david

Install:

Get facebook page posts using graph api and event emitter

npm install fb-posts

Usage

var fbPosts = require('fb-posts')

var engine = fbPosts('USERNAME', 'PASSWORD', 'PAGE_ID', {
  fields: ['link'], // or any fields you want
  max: 10 // max posts
})
engine.start()

engine.on('found', function (post) {
  console.log(post)
})

engine.on('done', function () {
  // no more posts
})

engine.on('error', function (err) {
  // found an error
})

Feel free to open issues and PRs

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago