hello.js
hello.js copied to clipboard
Login Issue - Not redirect to Api.instagram.com
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!
Print out e and see what you get.