Expo-Facebook login won't redirect back to Expo Client app when using login with Facebook app
Problem
๐ Bug Report Environment Expo CLI 3.9.0 environment info: System: OS: macOS 10.14.5 Shell: 3.2.57 - /bin/bash Binaries: Node: 12.13.1 - ~/.nvm/versions/node/v12.13.1/bin/node Yarn: 1.19.2 - ~/.yarn/bin/yarn npm: 6.12.1 - ~/.nvm/versions/node/v12.13.1/bin/npm IDEs: Xcode: 11.0/11M337n - /usr/bin/xcodebuild npmPackages: expo: ^35.0.0 => 35.0.1 react: 16.8.3 => 16.8.3 react-native: https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz => 0.59.8 react-navigation: ^4.0.10 => 4.0.10 npmGlobalPackages: expo-cli: 3.9.0 Expo Client on iOS device Steps to Reproduce I recently tried to add login with Facebook to my application. I just copied the logIn function from here `https://docs.expo.io/versions/v35.0.0/sdk/facebook/` When I run my app via Expo Client, and execute the logIn function it 1) Redirects me to a page asking if I want to use the Facebook app for login or use phone or email 2) If I use phone or email login works perfectly fine 3) If I select `Use Facebook App` it takes me to the Facebook app, it says `You have previously logged into [MY_APP] and then I press `Continue` a white screen shows up with the `Cancel` button on the top left. It never goes back to my app and never resolves this function `logInWithReadPermissionsAsync`. Expected Behavior It should have gone back to the Expo Client app where my app was running and it should have resolved the promise and return
Error Output
Error: ${message}`);
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Expo-Facebook login won't redirect back to Expo Client app when using login with Facebook app
@cruzach I tried now with the updated version 3.6 and unfortunately the same behavior @nnasiruddin explained in the description of the bug, it is still reproducible on my side. The Facebook login does never returns the logInWithReadPermissionsAsync method (after initializeAsync is done). We remain with the white screen shows up with theCancelbutton on the top left. It never goes back to my app an
Trust Score
2 verifications
- 1
@cruzach I tried now with the updated version 3.6 and unfortunately the same beh
@cruzach I tried now with the updated version 3.6 and unfortunately the same behavior @nnasiruddin explained in the description of the bug, it is still reproducible on my side. The Facebook login does never returns the logInWithReadPermissionsAsync method (after initializeAsync is done). We remain with the white screen shows up with theCancelbutton on the top left. It never goes back to my app and never resolves this.
- 2
Is there some redirects needed to be included in the app.json file which maybe w
Is there some redirects needed to be included in the app.json file which maybe we are missing? Or other important setups?
Validation
Resolved in expo/expo GitHub issue #6459. Community reactions: 1 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep