Facebook Login does not working

Hi, the facebook login doesnt working.
I does step by step the following documentation
https://docs.expo.io/versions/latest/sdk/facebook/
but before a few days, i received a email of facebook with the message:
‘Native iOS and Android apps that implement Facebook Login must use our official SDKs for Login.’

My firsts testing after i finished the developing was working great.
Now this appears.

The accounts that has already logged in my app can login, but new users cant login.

Relevant code:

login_facebook = async () => {
    const APP_ID = 'my facebook app id'
    const options = {
    permissions: ['public_profile', 'email'],
    }
    const {
      type,
      token,
      expires,
      permissions,
      declinedPermissions,
    } = await Facebook.logInWithReadPermissionsAsync(APP_ID, options);
    if (type === 'success') {
      this.setState({showSpinner: true})
      const response = await fetch(`https://graph.facebook.com/me?access_token=${token}&fields=email,name`)
      const userData = await response.json();
      console.log(userData)
      this.redirect_facebook(userData["id"], userData["name"], userData["email"]);
    }
  }

My app.json look like:

{
  "expo": {
    "name": "Clicoh",
    "slug": "Clicoh",
    "privacy": "public",
    "sdkVersion": "32.0.0",
    "platforms": ["ios", "android"],
    "version": "1.3.3",
    "orientation": "portrait",
    "icon": "./assets/images/icon_ios.png",
    "splash": {
      "image": "./assets/images/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#a529e2"
    },
    "notification":{
      "icon": "./assets/images/push-icon.png",
      "color": "#008000"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],

    "ios": {
      "bundleIdentifier": "mybundle",
      "infoPlist": {
        "facebookScheme": "fbmyfacebookappid",
        "CFBundleURLSchemes": "fbmyfacebookappid",
        "facebookAppID": "myfacebookappid",
        "facebookDisplayName": "Clicoh",
        "LSApplicationQueriesSchemes": ["whatsapp"],
      }
    },
    "android": {
      "package": "mypackage",
      "versionCode": 33,
      "config": {
      }
    },
  }
}

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.