Best way to use native facebook login in android and ios cordova app?

I am creating an ios / android cordova meteor app and all the documentation and plugins seem to be from years ago? Is there any good documentation on implementing native facebook login for both android and ios? I am currently using version 1.4.2.1.

Cheers.

I appear to have found this which should be fine - https://github.com/GManzato/meteor-facebook-native-login

The next problem I encounter is installing the facebook cordova plugin - https://github.com/jeduan/cordova-plugin-facebook4

The problem after I build my app meteor build, etc and go to the android package directory and run ‘cordova plugin add cordova-plugin-facebook4 --save --variable APP_ID=“123456789” --variable APP_NAME=“myApplication”’ with my details I get the error ‘Error: Current working directory is not a Cordova-based project.’. Am I doing something wrong here? Am I meant to install it another way? I have the cordova cli installed.

Thanks.

This is not the proper way to install cordova plugins in meteor.
to install this plugin in Meteor, use this command:
meteor add cordova:cordova-plugin-facebook4@VERSION
(read this for more info https://guide.meteor.com/mobile.html#installing-plugins )

Did this work out for you?