When attempting to log in with Instagram using hello.js, the login flow doesn’t redirect to https://api.instagram.com/oauth/authorize as expected.
Instead, it directly navigates to the redirect URI configured in Instagram.
Here’s the code snippet used:
hello('instagram').login({
redirect_uri: instagram_redirect_url,
scope: 'basic, publish'
}, function(e) {
if (!e.error) {
const auth = hello('instagram').getAuthResponse();
console.log(auth.oauth_token, auth.oauth_token_secret);
}
});
hello.init({
instagram: instagram_client_id
});
Issue
The console logs show undefined for both oauth_token and oauth_token_secret.
It seems the login process skips the authorization endpoint and returns without proper tokens.
Expected Behavior
The login flow should first reach Instagram’s authorization URL and return valid access tokens.
When attempting to log in with Instagram using hello.js, the login flow doesn’t redirect to https://api.instagram.com/oauth/authorize as expected.
Instead, it directly navigates to the redirect URI configured in Instagram.
Here’s the code snippet used:
hello('instagram').login({
redirect_uri: instagram_redirect_url,
scope: 'basic, publish'
}, function(e) {
if (!e.error) {
const auth = hello('instagram').getAuthResponse();
console.log(auth.oauth_token, auth.oauth_token_secret);
}
});
hello.init({
instagram: instagram_client_id
});
Issue
The console logs show undefined for both oauth_token and oauth_token_secret.
It seems the login process skips the authorization endpoint and returns without proper tokens.
Expected Behavior
The login flow should first reach Instagram’s authorization URL and return valid access tokens.