facebook-login icon indicating copy to clipboard operation
facebook-login copied to clipboard

Changes made to the Facebook Login SDK for iOS

Open ciccilleju opened this issue 1 year ago • 29 comments

With version 6.0.0 I can't login to facebook iOS anymore and i read about this: https://developers.facebook.com/blog/post/2024/03/28/changes-made-to-fb-login-sdk/

does anybody know what should I do to make it work again?

thanks

image

if i rollback to version 5.0.3 everything works fine

ciccilleju avatar May 01 '24 08:05 ciccilleju

@rdlabo Android works fine as you can see from this screenshot

but iOS asks me about a "limite" api which i never heard about.

image

Rolling back to 5.0.3 fixes the iOS issue. I don't know if you were aware of it

ciccilleju avatar May 01 '24 15:05 ciccilleju

Hihi, had the same issue but once I accepted Apple's ATT permission it defaulted back to the normal login flow instead of limited. Maybe you can try https://github.com/mahnuh/capacitor-plugin-app-tracking-transparency to enable the prompt which worked for me.

wickker avatar Jun 07 '24 02:06 wickker

I have the same problem. How did you solve it? @ciccilleju

lsantaniello avatar Jun 13 '24 07:06 lsantaniello

I have the same problem. How did you solve it? @ciccilleju

disabling facebook login at the moment

ciccilleju avatar Jun 13 '24 08:06 ciccilleju

Hihi, had the same issue but once I accepted Apple's ATT permission it defaulted back to the normal login flow instead of limited. Maybe you can try https://github.com/mahnuh/capacitor-plugin-app-tracking-transparency to enable the prompt which worked for me.

let me try it and I'll get back to you

edit: It works, thank you !!!

ciccilleju avatar Jun 13 '24 09:06 ciccilleju

What happens if the user does not accept tracking?

dragermrb avatar Jun 14 '24 07:06 dragermrb

you must use the facebook limited login, which works differently

ciccilleju avatar Jun 14 '24 08:06 ciccilleju

Can this plugin do limited login?

I never got an answer when I asked https://github.com/capacitor-community/facebook-login/issues/93

dragermrb avatar Jun 14 '24 08:06 dragermrb

no but this may help you https://github.com/capacitor-community/facebook-login/pull/150

ciccilleju avatar Jun 14 '24 08:06 ciccilleju

Thank you!

I'm the author of the original PR (https://github.com/capacitor-community/facebook-login/pull/94) and I've had a fork for a while (https://github.com/dragermrb/capacitor-plugin-facebook-login), but I wanted to see if I could get back to the community plugin.

dragermrb avatar Jun 14 '24 08:06 dragermrb

@dragermrb you can reach out to @mhartington if you want to maintain this community plugin.

shiv19 avatar Jun 14 '24 09:06 shiv19

@dragermrb thank you for the fork! Have you tried or been able to combine your fork and limited login with Firebase auth? The limited login seems to return a JWT token, which I don't think one can pass for Firebase's signInWithCredential method...

viking2917 avatar Jul 23 '24 15:07 viking2917

Hello, I currently do not use firebase, I validate the token in my own backend and authenticate the user if correct

dragermrb avatar Jul 23 '24 16:07 dragermrb

@rdlabo any chance we can get any of the proposed solutions for limited login applied to this repo?

theigl avatar Aug 05 '24 14:08 theigl