15.4.0 • Published 5 years ago
@the-/facebook v15.4.0
@the-/facebook
Facebook utility for the-framework
Installation
$ npm install @the-/facebook --save
Usage
'use strict'
const theFacebook = require('@the-/facebook')
async function tryExample () {
const fb = theFacebook({apiVersion: 'v2.11'})
const token = 'xxxxxxxxx' // user token
const appToken = await fb.appTokenFor('__my_app_id__', '__my_app_secret__')
const data = await fb.userDataFor(token, appToken, {
fields: 'name,email,picture,timezone,gender,locale'
})
}
tryExample().catch((err) => console.error(err))
License
This software is released under the MIT License.
Links
15.4.0
5 years ago