thebergamo / react-native-fbsdk-next

MIT License
693 stars 167 forks source link

Invalid ID token from login response. #526

Closed RinNguyens closed 6 months ago

RinNguyens commented 6 months ago

🐛 Bug Report

To Reproduce

I'm building with EXPO and logging in with facebook. Using the same account registered with fb developer to login. But can't login.

Expected Behavior

"userInfo": {"com.facebook.sdk:FBSDKErrorDeveloperMessageKey": "Invalid ID token from login response."}}

Code Example

app.tsx
<LoginButton
        onLogoutFinished={() => console.log("Logged out")}
        onLoginFinished={(error, data) => {
          console.log(error || data);
          AccessToken.getCurrentAccessToken().then((data) => console.log(data));
        }}
 />

app.json
"plugins": [
      "expo-router",
      "expo-tracking-transparency",
      [
        "react-native-fbsdk-next",
        {
          "appID": "7319591758162777",
          "clientToken": "f090dfcab4fcf7d154138099461435be",
          "displayName": "loginrinchans",
          "scheme": "fb7319591758162777",
          "advertiserIDCollectionEnabled": false,
          "autoLogAppEventsEnabled": false,
          "isAutoInitEnabled": true,
          "iosUserTrackingPermission": "This identifier will be used to deliver personalized ads to you."
        }
      ]
    ],

Environment

"react-native": "0.74.1", "expo": "~51.0.2", "react-native-fbsdk-next": "^13.0.0",

Miskamyasa commented 6 months ago

See the same problem.

"react-native": "0.73.8", "react-native-fbsdk-next": "^13.0.0"

Miskamyasa commented 6 months ago

Rollback to 12.2.0 fixed the problem for us

RinNguyens commented 6 months ago

Rollback to 12.2.0 fixed the problem for us

Tks bro. It's worked.