I am trying to login with Facebook on Android embedded browser. My code is written in Flutter and I am using AWS Cognito user pool for this purpose. I have done the Facebook configuration in Identity provider and it is working fine when I try to hit cognito APIs from web browser and it returns me id_token, refresh_token and access_token
. But when I try to login with Android embedded browser I get error that For your account security, Logging into Facebook from and embedded browser is disabled although I have enabled it from Facebook Login setting in my Facebook App.
Question posted in Facebook API
The official documentation for the Facebook APIs can be found here.
The official documentation for the Facebook APIs can be found here.
2
Answers
Facebook has deprecated support for Facebook login from embedded browsers. You can check more details from here.
https://developers.facebook.com/blog/post/2021/06/28/deprecating-support-fb-login-authentication-android-embedded-browsers/
As facebook has deprecated support for login through embedded browsers. So please follow the following to fix-
implementation ‘com.facebook.android:facebook-android-sdk:8.2.0’