Facebook SignIn with Capacitor show Limited API warning

I integrated @capacitor-community/facebook-login plugin in my capacitor app.

When my user sign in with facebook, facebook page shows this warning.

image

** Excusme for italian. I don’t have english screen

How can I solve It? I use only SignIn feature

Luca you must change your code, backend side.

  • @ciccilleju Do you have an issue talking to your backend to verify the token currently? I think there is a setting that is turned on by default that is related to the advertising tracker blocking for iOS. If the advertising tracker setting is turned on, the normal facebook login will result in a invalid token, then you will need the limitedLogin function in this implementation. Do note that you will need to change some things in your backend as well to verify the facebook limited login tokens as limitedLogin returns JWT instead of OAuth2 tokens.*

Thanks for reply @ciccilleju. I don’t understand why I have to modify my backend. Currently the Facebook login feature does not use a backend.

After getting the facebook token, you should check if it’s valid and store it somewhere in your backend. You can do the same without a proper backend of course but I can’t help you in that case.

Anyway, using this GitHub - mahnuh/capacitor-plugin-app-tracking-transparency: Capacitor plugin to request user authorization to access app-related data for tracking the user or the device.
fixes the problem.

Thanks for your support @ciccilleju. if I install this plugin, will I no longer see the warning on the Facebook authentication page?

users must consent the tracking. If they accept, yes it will work as intended, otherwise it won’t work.