Skip to content

Facebook login fails logging in to Facebook from an embedded browser #1164

Closed
@EAncis

Description

@EAncis

New Issue Checklist

Issue Description

I am part of the [removed] developer team, one of our apps is [removed]. Our Apps (iOS/Androd) include the authentication throughout the Facebook account that has always workred on each platform.

Now we have been contacted by the Facebook team beacuse a persiting issue on this feature douring these last mounths on Android.

We have updates the Facebook SDK and your Parse-SDK-Android, che cked our existing implemetantion about the login flow from the developer Facebook documentation and the your Parse Facebook Utils for Android.

Everything appears correct, but the issue persists.

Maybe Parse Facebook Utils for Android need to be update after any Facebook SDK Change?
Anyway can you help us to fix our issue?

Steps to reproduce

  • Install Android Facebook app on your device;
  • Login on facebbok;
  • Download the [app removed]
  • Follow the introdicing tutorial or skip it;
  • Tap on the Facebook login button.

Actual Outcome

Facebook login error view with For your account security, logging in to Facebook from an embedded browser is disabled. You may be able to continue by updating the app you're logging in from and trying again message.

Expected Outcome

Proceed to login on the [removed] app and access the its homeview

Environment

Developing on Android Studio Bumblebee 2021.1.1 Patch 3, Java Language, Gradle 7.2 and Gradle plugin 7.1.3
Tested on Android 10 (physical device) and 12 (emulated device)
Dependencies:
com.facebook.android:facebook-android-sdk:13.1.0:
com.facebook.android:facebook-login:13.1.0
com.github.parse-community.Parse-SDK-Android:parse:3.0.0
com.github.parse-community.Parse-SDK-Android:google:3.0.0
com.github.parse-community.Parse-SDK-Android:facebook:3.0.0
com.github.parse-community.Parse-SDK-Android:fcm:3.0.0
com.github.parse-community.Parse-SDK-Android:ktx:3.0.0
com.github.parse-community.Parse-SDK-Android:coroutines:3.0.0

Parse Android SDK

  • SDK version: 3.0.0
  • Operating system version: Android

Server

  • Parse Server version: 3.9.0
  • Operating system: Back4App does not provides that info
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): www.back4app.com

Database

  • System (MongoDB or Postgres): Managed by Back4App
  • Database version: Managed by Back4App
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): Managed by Back4App

Logs

Any long is retrived into theLogcat.
On debugging mode we can check that after the FB Button onclick the flow passes into

ParseFacebookUtils.logInWithReadPermissionsInBackground(...)

then throught the

 @Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
  super.onActivityResult(requestCode, resultCode, data);
  ParseFacebookUtils.onActivityResult(requestCode, resultCode, data);
} 

but does not return from the callback into any case of

@Override
  public void done(ParseUser user, ParseException err) {
    if (user == null) {
      Log.d("MyApp", "Uh oh. The user cancelled the Facebook login.");
      ...
    } else if (user.isNew()) {
      Log.d("MyApp", "User signed up and logged in through Facebook!");
      ...
    } else {
      Log.d("MyApp", "User logged in through Facebook!");
      ...
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:questionSupport or code-level question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions