capacitor-firebase-auth icon indicating copy to clipboard operation
capacitor-firebase-auth copied to clipboard

Facebook on android is showing browser popup

Open josematoswork opened this issue 3 years ago • 5 comments

I am using capacitor 3.0 and Google authentication works on browser and Android. The facebook authentication works on browser but on Android when logging in with facebook it opens a browser popup where I need to login with facebook again instead of using my installed facebook app session.

My capacitor.config.json look like this

{ "appId": "com.xxx.yyy", "appName": "AppName", "bundledWebRuntime": false, "npmClient": "npm", "webDir": "www", "plugins": { "CapacitorFirebaseAuth": { "providers": ["google.com", "apple.com", "facebook.com"], "languageCode": "en", "nativeAuth": true, "properties": { }, "permissions": { "google": ["email", "profile"], "facebook": ["email"], "apple": ["fullName", "email"] } } } }

Is this config correct ? Can someone help me ?

Thanks!

josematoswork avatar Aug 25 '21 18:08 josematoswork

I am using capacitor 3.0 and Google authentication works on browser and Android. The facebook authentication works on browser but on Android when logging in with facebook it opens a browser popup where I need to login with facebook again instead of using my installed facebook app session.

My capacitor.config.json look like this

{ "appId": "com.xxx.yyy", "appName": "AppName", "bundledWebRuntime": false, "npmClient": "npm", "webDir": "www", "plugins": { "CapacitorFirebaseAuth": { "providers": ["google.com", "apple.com", "facebook.com"], "languageCode": "en", "nativeAuth": true, "properties": { }, "permissions": { "google": ["email", "profile"], "facebook": ["email"], "apple": ["fullName", "email"] } } } }

Is this config correct ? Can someone help me ?

Thanks!

I too am experiencing this today.

hicreate avatar Aug 25 '21 20:08 hicreate

same here

grptx avatar Sep 06 '21 05:09 grptx

in addition, facecebook will soon remove the ability to login from popups

grptx avatar Sep 06 '21 06:09 grptx

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

grptx avatar Oct 05 '21 08:10 grptx

it is necessary to update the facebook sdk version to a new version in your applevel build.gradle file

implementation 'com.facebook.android:facebook-android-sdk:11.1.0'

grptx avatar Oct 06 '21 08:10 grptx