React-Native-使用React-Native instagram登录进行instagram集成的重定向url应该是什么

React-Native-使用React-Native instagram登录进行instagram集成的重定向url应该是什么,react-native,instagram,react-native-instagram-login,React Native,Instagram,React Native Instagram Login,我正在使用react native instagram登录,以便在react native中集成instagram。 我尝试过,但当我登录instagram时,它会给我这个错误 {“error\u type”:“OAuthException”,“code”:400,“error\u message”:“Invalid redirect\u uri”} 这是我的密码 <TouchableOpacity onPress={() => this.instagramLogin.show()}

我正在使用react native instagram登录,以便在react native中集成instagram。 我尝试过,但当我登录instagram时,它会给我这个错误

{“error\u type”:“OAuthException”,“code”:400,“error\u message”:“Invalid redirect\u uri”}

这是我的密码

<TouchableOpacity onPress={() => this.instagramLogin.show()}>
   <Text style={{color: 'black', textAlign: 'center'}}>Login now</Text>
</TouchableOpacity>
<InstagramLogin
   ref={(ref) => (this.instagramLogin = ref)}
   appId="*******"
   appSecret="**********"
   redirectUrl="https://www.google.com"
   scopes={['user_profile', 'user_media']}
   onLoginSuccess={(data) => console.log('check data ', data)}
   onLoginFailure={(data) => console.log(data)}
/>
this.instagramLogin.show()}>
立即登录
(this.instagramLogin=ref)}
appId=“*******”
appSecret=“**********”
重定向URL=”https://www.google.com"
作用域={['user\u profile','user\u media']}
onLoginSAccess={(数据)=>console.log('check data',data)}
onLoginFailure={(数据)=>console.log(数据)}
/>

在开发者facebook中,我放置了有效的OAuth重定向URI-

很简单,你必须在重定向url上添加跟踪斜杠

this.instagramLogin.show()}>
立即登录
(this.instagramLogin=ref)}
appId=“*******”
appSecret=“**********”
重定向URL=”https://www.google.com/"
作用域={['user\u profile','user\u media']}
onLoginSAccess={(数据)=>console.log('check data',data)}
onLoginFailure={(数据)=>console.log(数据)}

/>
很简单,您必须在重定向url上添加跟踪斜杠

this.instagramLogin.show()}>
立即登录
(this.instagramLogin=ref)}
appId=“*******”
appSecret=“**********”
重定向URL=”https://www.google.com/"
作用域={['user\u profile','user\u media']}
onLoginSAccess={(数据)=>console.log('check data',data)}
onLoginFailure={(数据)=>console.log(数据)}
/>
现在它可以工作了。我之前在代码中添加了,因此它不起作用。后来我才知道,facebook开发控制台在保存重定向url时会在末尾添加“/”。现在在重定向URL中,我用斜杠传递,现在它工作了,现在它工作了。我之前在代码中添加了,因此它不起作用。后来我才知道,facebook开发控制台在保存重定向url时会在末尾添加“/”。现在在重定向URL中,我用斜杠传递,现在它工作了。