react-native-instagram-login icon indicating copy to clipboard operation
react-native-instagram-login copied to clipboard

after logging in it redirect the user to the redirect url in android that is set to google (ios is working fine)

Open sajjad-yousaf opened this issue 5 years ago • 2 comments

<InstagramLogin ref={ref => (this.instagramLogin = ref)} appId='*******' appSecret='********************' redirectUrl='https://google.com/' scopes={['user_profile', 'user_media']} onLoginSuccess={this.setIgToken} onLoginFailure={(data) => console.log(data)} />

this is my code that i used for instagram login, but i am facing an issue that after entering credentials, user is redirected to chrome instead of coming back to app with response, can anyone please help me how can i solve this problem?

sajjad-yousaf avatar Dec 26 '20 14:12 sajjad-yousaf

can you give me the video about this?

hungdev avatar Jan 08 '21 04:01 hungdev

@TeamDlxx @hungdev I figured out how to solve this issue. instagram.js file, line: 51 if (url && url.startsWith(this.props.redirectUrl)) { this is always false because the URL starts with https://www.google.com and my redirectUrl is https://google.com. You need to add www everywhere

Lg0gs avatar Apr 09 '21 09:04 Lg0gs