OAuth.popup('facebook', function(err, res) { if (err) { // do something with error }
// the access token is in res.access_token !
res.get('/me') .done(function(data) { alert('Hello ' + data.name) }) })
OAuth.popup('twitter', function(err, res) { if (err) { // do something with error }
// the access token is in res.access_token !
res.get('/1.1/account/verify_credentials.json') .done(function(data) { alert('Hello ' + data.name) }) })