Facebook OAuth works on iOS but not Android standalone app

  1. SDK Version: 40
  2. Platforms(Android/iOS/web/all): Android

I have followed every step of https://docs.expo.io/versions/latest/sdk/facebook to get Facebook authentication working for a built Android standalone app. Note that:

  1. Facebook login works in Expo Go for both Android and iOS
  2. Facebook login works for iOS standalone
  3. I have followed the android standalone app instructions above, where I added the key hash to my Facebook developer account
  4. I have switched to production mode

What I’m seeing is that when I click “Continue” (after Facebook prompts with “you have previously signed in with…”), it redirects back to the standalone app, but seemingly to some default blank “Activity” screen with my app name at the top (something like this https://miro.medium.com/max/700/1*TBQn1kUaAPcyX4Rzg9quVw.png).

Is there some way to debug what exactly is blocking the redirect/authentication from registering?

Update: this seems to be an issue with the expo-auth-session/facebook module: https://docs.expo.io/versions/v40.0.0/sdk/auth-session/#facebook.

When I switched over to expo-facebook, both iOS and Android worked like a charm (funnily enough, it stopped working on Expo Go).

Since expo-facebook does not support web, I still had to keep expo-auth-session/facebook for web login.

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