PSA: Facebook Login 'web' Behavior Broken on iOS


#1

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: https://developers.facebook.com/bugs/308223272954725/

Another possibly related issue was reported here: https://developers.facebook.com/bugs/1848797812109191/?comment_id=315209045602582

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,
      });