its my code
’twitter’ : ‘API_KEY_HERE’
},
{
//redirect_uri:'/',
// oauth_proxy: 'https://auth-server.herokuapp.com/proxy'
});
function login(network){
var twitter = hello(network);
twitter.login().then( function(r){
return twitter.api('/me');
}, log ) .then( function(p){
console.log("Connected to "+ network+" as " + p.name);
var res = JSON.stringify(p);
self.location= '/home/login.twLogin.do?result='+res;
}, log );
}`
i have already registered my app in herokuapp.com but i still can’t login to twitter.
proxy error:502 Server dropped connection.
Who can help me solve this problem?
thanks!