1.1.1 • Published 9 years ago

fb-export-api v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

fb-export-api

Node wrapper for Facebook Export API

How to use

const id = process.env.APP_ID
const secret = process.env.APP_SECRET

const date = ~~(Date.now() / 1000)
const FB = require('../lib')
const fs = require('fs')

const account = new FB(id)

account.init(secret)
  .then((token) => account.query(token, { end: date, start: date - 86400 }))
  .then((res) => {
    console.log('writing file!', res)
    var output = fs.createWriteStream('./output.gz')
    res.pipe(output)
  })
1.1.1

9 years ago

1.1.0

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago