react-native-facebook-login icon indicating copy to clipboard operation
react-native-facebook-login copied to clipboard

Throws the Invalid API error

Open iamrutvik opened this issue 7 years ago • 0 comments

Added FBLoginManager.setLoginBehavior(FBLoginManager.LoginBehaviors.SystemAccount); with FBLoginManager

FBLoginManager.loginWithPermissions(["email","public_profile", "user_birthday"], function(error, data){
      if(!error) {
        _this.setState({loading: true});
        _this.fetchUser(data, 'facebook');
      }
      else{
        window.alert("Something went wrong. Please try again.");
      }

I am getting this error :

{"declinedPermissions":[],"provider":"facebook","type":"error","eventName":"onError","message":"Invalid API method"}

Can anybody help?

iamrutvik avatar Mar 28 '17 11:03 iamrutvik