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.
As facebook has deprecated support for login through embedded browsers. So please follow the following to fix-