Can I use Firebase simple login to access Twitter API? -


it's easy simple login working twitter, , that's big bonus, wondering whether it's possible take authentication credentials , post tweet, list of people they're following, use full twitter 1.1 api. i.e. can hold of access token key , secret?

thanks, dave.

the firebase simple login javascript client returns both twitter access token , access token secret in response payload twitter authentication.

you can access each of these via user object, under attributes accesstoken , accesstokensecret shown below:

var firebaseref = new firebase('https://<my-firebase-name>.firebaseio.com'); var authclient = new firebaseauthclient(firebaseref, function(error, user) {   if (user) {     var accesstoken = user.accesstoken,         accesstokensecret = user.accesstokensecret;   } });  ...  // sample jquery click event. $mybutton.on('click', function(event) {   authclient.login('twitter'); }); 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -