parse-community / ParseFacebookUtils-Android

A utility library to authenticate ParseUsers with the Facebook SDK
http://docs.parseplatform.org/android/guide/#facebook-users
Other
53 stars 63 forks source link

Facebook Login screen continues to displays after authorizing #21

Open ijcheung opened 7 years ago

ijcheung commented 7 years ago

Following the instructions for Facebook Login, and not using the Facebook app or Chrome Custom Tabs.

The login webview popup continues to display after authorizing the app. Flow goes:

Login > Authorize App > Login

Upon closing the login popup, a successful LogInCallback will be received.

djarunn commented 7 years ago

I am also facing the same issue.

As mentioned , it occurs when user don't have native facebook app installed in his phone.

ParseFacebookUtils.logInWithReadPermissionsInBackground( ACTIVITY, PERMISSIONS , CALLBACK)

Opens two popup screens for login.

Flow :>

Login with Facebook Button Presses >Login Screen (screen 1) > Overlapping Login Screen Again (screen 2).

If we enter credentials in screen 2 , it authenticates successfully. But since we have same login screen opened in back, callback is not sent. Once we close this login screen(screen1) callback is received by the app.

Incase we close the top screen (screen2), the screen beneath(screen1) will be shown and on entering credentials in (screen1) callback is received by the app but session is not authenticated.

So it seems , screen1 is not a valid screen as entering credentials here don't authenticate . But it does stops the callback received once the user is successfully logged in by screen2.