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
184 stars 103 forks source link

"Continue with Facebook" doesn't work. #107

Open mniYUNSU opened 2 years ago

mniYUNSU commented 2 years ago

Hello, Im Junior Developer from South Korea.

I used this library to authenticate user's Instagram account. Instagram login works well, but "Continue with Facebook" does not work.

How can I succeed in "Continue with Facebook"?

attachment of related video(gif) :

https://cdn.discordapp.com/attachments/845098543580053505/953546796125265940/continue_with_facebook.gif

 <InstagramLogin
        ref={instagramRef}
        appId={config.instagramAppId}
        appSecret={config.instagramAppSecret}
        scopes={['user_profile']}
        redirectUrl={config.instagramRedirectUrl}
        onLoginSuccess={instagramLoginSuccess}
        onLoginFailure={data => console.log(data)}
        language="ko"
        originWhitelist={['*']}
        wrapperStyle={{borderWidth: 0, overflow: 'hidden', borderRadius: 20}}
        incognito={false}
      />
mniYUNSU commented 2 years ago

This problem has been solved.

RajeshSFS commented 2 years ago

Hi @mniYUNSU

How did you solve this issue, I'm still getting "Continue with Facebook" not working in android. As mentioned here: https://github.com/hungdev/react-native-instagram-login/issues/99

mniYUNSU commented 2 years ago

Hi @RajeshSFS

Actually, it hasn't been solved completely. "Continue with Facebook" does not work. Because Facebook Login does not work in WebView.

If you want it to work, react-native-fbsdk must be used.

An example of this problem is TikTok and Tinder. TikTok and Tinder also has Instagram Login, but "Continue with Facebook" does not work...

In other words, Continue with Facebook is not possible with Instagram Login, and only Instagram Login is possible.

RajeshSFS commented 2 years ago

Thanks @mniYUNSU for quick reply. Yes only login with Instagram is working.