Hello,
I would like to implement Facebook authentication for my app and so I am looking at the options.
Facebook offers the I guess well known Graph API to login.
I am wondering
-
the feasibility as I read on Facebook API doc that the redirection URL should be in HTTPS: can we spawn the ionic app in HTTPS for web / ios / android?
-
if anyone has some guidance about how to implement this in an ionic app
-
eventually if one gave a try to below plugins
- byteowls/capacitor-oauth2 (capacitor)
@byteowls/capacitor-oauth2 5.0.0 on npm - Libraries.io - rdlabo-team/capacitor-facebook-login (capacitor)
GitHub - rdlabo-team/capacitor-facebook-login: Facebook Login plugin for Capacitor - cordova-plugin-facebook4 (native)
https://ionicframework.com/docs/native/facebook/
- cordova-plugin-facebook4
About this latter it looks cordova plugins can coexist in a capacitor project as per capacitor doc but
“Capacitor does not support Cordova install variables(…) you’ll need to apply those configuration settings manually”
with I assume then APP_ID and APP_NAME to be configured manually as plugin installation command is
ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID="123456789" --variable APP_NAME="myApplication"
Thank you,