I am trying to create a social registration system. So far I implemented the function for sign up with Facebook. Now, when trying to create the sign up with Twitter account, I implemented this:
var client = new Twitter({
consumer_key: 'oN******',
consumer_secret : 'Za****',
access_token_key: '9*****',
access_token_secret: 'N0*****'
});
client.get( 'users/show.json', { id: '9***' }, function(error, user, response){
if( error ) { res.json( JSON.stringify( error ) ); return; }
I hardcoded my user id and my app id/secret, consumer key/ secret.
I keep getting the error:
{"errors":[{"code":32,"message":"Could not authenticate you."}]}' }
I will appreciate so much if you can help me with this issue. Thank you!
via Emanuela colta
No comments:
Post a Comment