hungdev / react-native-instagram-login

a react native instagram login component (support android & ios). Pull requests are welcome!
https://www.npmjs.com/package/react-native-instagram-login
187 stars 105 forks source link

Getting "ErrorType: OAuthException" while trying to login using react-native-instagram-login #57

Closed nihp closed 4 years ago

nihp commented 4 years ago

I am getting "ErrorType: OAuthException" while trying to login using react-native-instagram-login Screenshot 2019-12-05 at 10 34 21 AM

nihp commented 4 years ago

@hungdev Could you please look into this?

hungdev commented 4 years ago

@nihp please fill correct Instagram App ID and Instagram App Secret as my image guide.

nihp commented 4 years ago

Shall I need to add scope as basic or scopes={['user_profile', 'user_media']}

I gave the AppId and App secret as you mentioned there. Still facing the same.

My Code

<InstagramLogin ref={ref => (this.instagramLogin = ref)} scopes={['user_profile', 'user_media']} redirectUrl='my url' appId='appid' appSecret = 'appSecret' onLoginSuccess={(token, result) => this.socialLogin(token, 2)} onLoginFailure={(data) => this.setState({failure: data})}/>

nihp commented 4 years ago

Now I am getting If I change to basic I am getting an Oops, an error occurred

Also while change the scopes={['user_profile', 'user_media']} now I am getting an error message "Insufficient developer role"

Screenshot 2019-12-12 at 2 08 00 PM

hungdev commented 4 years ago

Go to Roles > Instagram Users and add your Instagram account. Then go to https://www.instagram.com/accounts/manage_access/ to accept the Tester Invite from your app.

nihp commented 4 years ago

Thanks the above error gone

CVRamana commented 4 years ago

Go to Roles > Instagram Users and add your Instagram account. Then go to https://www.instagram.com/accounts/manage_access/ to accept the Tester Invite from your app.

still getting the same error

gwendall commented 4 years ago

Go to live mode for your facebook app

hungdev commented 4 years ago

please create new issue if you get the bug. This topic should be closed. Feel free to open. :)