react-native-facebook-login
react-native-facebook-login copied to clipboard
ERROR FLAG
Hi, i can't find a flag on the error tu use in my callback.
"error": {
"declinedPermissions: [],
"provider":"facebook",
"type":"error",
"eventName":"onError",
"message":"CONNECTION_FAILURE: CONNECTION_FAILURE"
}
i have to show a modal when the connection fail, but the only information about the reason of the error is on the message
property that don't seems so good to use for checking.
any help?
not sure why you need a flag.
when an error happens the onError
callback is triggered. once you end up in that callback then only an error could have occurred. you could just trigger your error modal.
Also if error
is defined, it means that there is an error
In what scenario would you need the flag?
i have to show the modal only if the error is a connection error, cause the modal is specific for reporting connection issues.