I am getting this error: type “FacebookOrginal” is not assignable to type ‘Provider’.
Type “FacebookOrginal” is missing the following properties from type of ‘FactoryProvider‘: provider, etc..
I am following this code:
For install the Facebook connect plugin:
ionic start fbLogin blank cd fbLogin ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID="YOURID" --variable APP_NAME="YOURAPPNAME" npm install --save @ionic-native/facebook
in src/app/app.moduel.ts try with this code:
import { Facebook } from '@ionic-native/facebook'; providers: [ StatusBar, SplashScreen, { provide: RouteReuseStrategy, useClass: IonicRouteStrategy }, Facebook ]
This position I am getting the error. What can I do for it?
Question and answer is powered by AnsPress.io