Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Facebook Share Dialog Blocks Login Due To Embedded Browser

I am using the cordova-plugin-facebook-connect plugin to launch the share dialogs from Facebook. iOS is working great, and Android is working great when the app is installed.

On Android, if the app is not installed, it tries to share with an embedded web browser. After entering my email and password, I get an error saying that logging into Facebook from an embedded browser is disabled. I am using the latest version of the plugin, which SHOULD mean the latest Facebook Android SDK

Error Message after entering password and email

I have looked on our business dashboard and made sure that embedded login is allowed: embeded browser OAuth Login enabled ...but that mentions OAuth so maybe it's not relevant. I have uploaded the debug and production key hashes to the dashboard

I have found nothing on the Facebook docs and I haven't gotten an answer from the Facebook developer community.

To sum up:

If the app is installed, it is all good. Without the app, it uses the embedded browser, but Facebook is blocking the login. I would love to know WHY and how to enable it.

UPDATE: Using a Facebook generated test user worked

Cheers

like image 632
Mizmor Avatar asked Jun 17 '21 20:06

Mizmor


Video Answer


2 Answers

As Recommended by Facebook please update Dependencies to

implementation 'com.facebook.android:facebook-android-sdk:[8,9)'

Ref :

https://developers.facebook.com/docs/android/componentsdks/

https://developers.facebook.com/blog/post/2021/06/28/deprecating-support-fb-login-authentication-android-embedded-browsers/

like image 151
Islam Alshnawey Avatar answered Oct 13 '22 18:10

Islam Alshnawey


Facebook has let everyone know that they are deprecating support for FB Login on Android embedded browsers:

https://developers.facebook.com/blog/post/2021/06/28/deprecating-support-fb-login-authentication-android-embedded-browsers/

As of right now, they are blocking High Risk users with this error and will block everyone starting in August. Their suggestion is to use a later version of the SDK (8.2+) to avoid this

like image 1
Mizmor Avatar answered Oct 13 '22 18:10

Mizmor