hello.js icon indicating copy to clipboard operation
hello.js copied to clipboard

Login Issue - Not redirect to Api.instagram.com

Open folkeg opened this issue 7 years ago • 1 comments

Hi: I tried to login instagram with hello.js, the issue is that hello.login never direct to api.instagram.com/oauth/authorize first, but to my redirect url which I set in instagram. Here's my code: `hello('instagram').login({redirect_uri : instagram_redirect_url, scope: 'basic, publish'}, function(e){ if(e.error){ }else{ var instagram_access_token = hello('instagram').getAuthResponse().oauth_token; var instagram_secret = hello('instagram').getAuthResponse().oauth_token_secret; console.log(instagram_access_token); console.log(instagram_secret); } });

hello.init ({ instagram: instagram_client_id });`

The console.log is undefined.

Thank you!

folkeg avatar Aug 02 '17 19:08 folkeg

Print out e and see what you get.

MrSwitch avatar Aug 21 '17 21:08 MrSwitch