I'm trying to add Facebook login in my application.
Using react-native-fbsdk-next
Here is my code:
const result = await LoginManager.logInWithPermissions(['public_profile', 'email', 'user_birthday']);
if (result.isCancelled) {
btnFacebookRef.current.setLoadingValue(false);
} else {
const data = await AccessToken.getCurrentAccessToken();
...other code
I had this problem and stuck on it in 1 week. Then I found solution.
Go in your app. Settings -> Advanced. Make sure you have upgrade to latest sdk for both OS.
For it we can follow this link to setup:
Let run and test your app in development mode with test account.
After that, let send your app (APK, IPA) to Facebook team to make your application enable in live mode. If they need to check it on store (Google Play), just release new version with update FBSDK, make sure this version working well in development mode. Waiting your app enable in live mode and it will be done!
Good luck for you!