magus / react-native-facebook-login

React Native component wrapping the native Facebook SDK login button and manager
MIT License
1.24k stars 327 forks source link

Shows button, then crashes app #198

Open DeveloperAlly opened 7 years ago

DeveloperAlly commented 7 years ago

Clicking the facebook button crashes the app - iOS. The only console log is no user logged in.

lwhiteley commented 7 years ago

can you pull from master and test if it is resolved

EdmundMai commented 7 years ago

same issue. it works in my simulator and when i run the build on my device, but when i use codepush to push out a staging build and test that, it crashes when i tap the button


  facebookSignIn() {
    FBLoginManager.loginWithPermissions(["email","public_profile"], function(error, data){
      if (!error) {
        console.log("Login data: ", data); 
        ...
      } else {
        console.log("Error: ", data);
        ...
      }
    });
  }

here are my dependencies:

  "dependencies": {
    "@exponent/ex-navigation": "^2.7.1",
    "babel-preset-react-native-stage-0": "^1.0.1",
    "bcryptjs": "^2.4.0",
    "install": "^0.8.4",
    "moment": "^2.17.1",
    "npm": "^4.0.5",
    "phoenix": "^1.2.1",
    "react": "15.4.1",
    "react-native": "^0.39.2",
    "react-native-animatable": "^1.1.0",
    "react-native-bcrypt": "2.4.0",
    "react-native-code-push": "^1.16.1-beta",
    "react-native-device-info": "^0.9.7",
    "react-native-facebook-login": "^1.4.0",
    "react-native-geocoder": "^0.4.5",
    "react-native-image-sequence": "^0.1.8",
    "react-native-in-app-utils": "^4.0.0",
    "react-native-keep-awake": "^1.0.7",
    "react-native-loading-spinner-overlay": "latest",
    "react-native-modalbox": "^1.3.8",
    "react-native-permissions": "^0.2.5",
    "react-native-webrtc": "^0.54.4",
    "rn-splash-screen": "^2.1.0",
    "tcomb-form-native": "^0.6.3"
  },