0.2.0 • Published 9 years ago
fb-access-token v0.2.0
fb-access-token
Retrieve facebook access token by Graph API Explorer API.
Install:
npm install fb-access-token
Usage:
Command line:
fbtoken <USERNAME> <PASSWORD> [APP_ID]
Require It:
var FbToken = require('fb-access-token')
// login and get access token
fbToken.loginGetToken(function (err, token) {
if (err) throw err
console.log('Access token:', token)
})
// get token every second without login again
setInterval(function() {
ft.getToken(function(err, token) {
if (err) throw err
console.log('Access token in every second:', token);
});
}, 1000);