facebookarchive / react-native-fbsdk

A React Native wrapper around the Facebook SDKs for Android and iOS. Provides access to Facebook login, sharing, graph requests, app events etc.
https://developers.facebook.com/docs/react-native
Other
2.99k stars 909 forks source link

Facebook login not working in IOS 12 versions #772

Open sankar9659 opened 4 years ago

sankar9659 commented 4 years ago

Hello, I'm working on react native app. and I have used the fbsdk package for facebook login. Its working good on android and IOS 13,11 versions. But in IOS 12 version devices, the screen shows blank. It did not show any error.

Versions: "react": "16.9.0", "react-native": "0.61.5", "react-native-fbsdk": "^2.0.0",

Code is: { LoginManager.logOut() LoginManager.setLoginBehavior(Platform.OS === "android" ? 'web_only' : 'browser') const result = await LoginManager.logInWithPermissions(['email', 'public_profile']); Reactotron.log({ result }); if (result.isCancelled) { this.setState({ fbLoading: false }); Alert.alert('', 'User cancelled'); } else { const infoRequest = new GraphRequest( '/me?fields=first_name,last_name,picture,email', null, this.responseInfoCallback ); new GraphRequestManager().addRequest(infoRequest).start(); } }

Does anyone face this issue?