Facebook, google, twitter, ...social login via plugins or via ionic.io Auth service

Hey

I don’t understand why lots of people, in order to implement social networks login in their ionic 2 app, seem to go with the plugin route:

cordova-plugin-facebook4
cordova-plugin-googleplus

instead of using the ionic.io service:

https://docs.ionic.io/services/auth/

Can you shed light on which is the best solution ?

Thanks

If you read the docs carefully, you probably would have noticed that these plugins are the native supported sign in providers used by the ionic.io service. It’s actually the preferred method (over use of the inAppBrowser). So, the plugins you’ve mentioned are actually the ones provided and supported by the ionic io services.

More info about the native sign in options can be found here:


ha ok ! I didn’t know that. Thanks !

This is true. Here’s an example of using cordova-plugin-facebook4 with Ionic Auth to authenticate via Facebook: