@ondonda wrote:
Hi , i'm facing a little issue with facebook login plugin (with a lot of another plugin too)
so i installed ionic-native and the plugin with $ ionic plugin add cordova-plugin-facebook4and tried to run it into my app like this
fblogin(){ this.platform.ready().then(() => { Facebook.login(["email, public_profile"]).then((result) => { this.rootRef.$authWithOAuthToken("facebook", result.access_token).then((user) => { console.log(user) }) }) }) }
when i click the button , i have error message
Native: tried calling Facebook.login, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
the plugin dont work in simulator or devices , anyone installed facebook plugin in his app?
Posts: 3
Participants: 2