hello.js
hello.js copied to clipboard
Yahoo login issue parameter_rejected
Hi There,
I've set up login with yahoo and setup proxy with Heroku. However, i'm getting an error below.
error : {code: "parameter_rejected", message: "oauth_problem=parameter_rejected&oauth_parameters_rejected=oauth_callback"}
I've given https://api.login.yahoo.com/oauth/v2/get_token
as grant_url for heroku
My code for implementing yahoo login is as below..
`
function mylogin(network){
var yahoo = hello(network);
yahoo.login().then(function(){
// Get Profile
return yahoo.api('me');
}).then(function(p) {
console.log(p);
}).then(null, function(e) {
console.error(e);
});
}
hello.init({
'yahoo' : 'XXXX'
},
{
redirect_uri:SITE_URL+'includes-nct/javascript-nct/plugins-nct/hello/redirect.html',
oauth_proxy: OAUTH_PROXY_URL
});
` Any hint will do.