3
我試圖用hello.js登錄instagram,但它永遠不會直接到https://api.instagram.com/oauth/authorize,否則它會立即指向我的重定向網址,所以我無法獲取訪問令牌。這裏是我的代碼:instagram登錄hello.js
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
});
您是否找到解決方案? – Manolo