react-native-facebook-login
react-native-facebook-login copied to clipboard
Throws the Invalid API error
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?