PSA: Facebook Login 'web' Behavior Broken on iOS

We recently discovered that the 'web' behavior broke on iOS sometime in the last 48 hours, probably due to a change on Facebook’s side.

Bug report is here: Log into Facebook

Another possibly related issue was reported here: Log into Facebook

If you are building your project as a standalone app with exp build, the recommended workaround is to switch to 'native' for the behavior:

      let behavior = 'web';
      if (Constants.appOwnership === 'standalone') {
        behavior = 'native';
      }

      const result = await Expo.Facebook.logInWithReadPermissionsAsync(id, {
        permissions: ....,
        behavior,
      });
2 Likes