0.2.0 • Published 9 years ago

fb-access-token v0.2.0

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

fb-access-token

js-standard-style npm david

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);

Feel free to open issues and PRs

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago