I have upgraded my working Ionic 2 app to Ionic 3 and Ionic Native 3.
For some reason the facebook object that I receive in constructor is undefined:
- ionic plugin add cordova-plugin-facebook4 --variable APP_ID=“123456789” --variable APP_NAME=“myApplication”
- npm install --save @ionic-native/facebook
- @NgModule({ … providers: [ Facebook ] … })
- import { Facebook, FacebookLoginResponse } from ‘@ionic-native/facebook’;
- constructor(private facebook:Facebook) {}
The facebook parameter is undefined…