Open sankar9659 opened 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?
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?