Facebook plugin not installed


#1

Hi all,
I just updated all for newest version and then installed cordova-plugin-facebook4 . But if I want to use this plugin, console tell to me that:

Native: tried calling Facebook.browserInit, but the Facebook plugin is not installed. Install the Facebook plugin: 'ionic cordova plugin add cordova-plugin-facebook4'

I tried many times to reinstall platforms and node_modules. But no luck with this.

Is there something wrong?

EDIT:
Here is ionic info log:


cli packages: (/Users/martincihak/Sites/apps/mojeBaby-app/node_modules)

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

global packages:

    cordova (Cordova CLI) : 7.1.0 

local packages:

    @ionic/app-scripts : 3.1.2
    Cordova Platforms  : android 6.3.0
    Ionic Framework    : ionic-angular 3.9.2

System:

    Node : v8.6.0
    npm  : 5.5.1 
    OS   : macOS High Sierra

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro



Facebook plugin is not installed (warning and error nach plugin installation)
#2

Maybe you are using the plugin before platform.ready

Please move your code inside platform.ready()

Best Regards,
Parshav


#3

I have the same issue. And yes, I use the plugin within the plaform.ready.

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.1.2
    Cordova Platforms  : android 6.3.0 ios 4.5.4
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    ios-deploy        : 1.9.2
    Node              : v8.9.1
    npm               : 5.6.0
    OS                : macOS High Sierra
    Xcode             : Xcode 9.2 Build version 9C40b

Environment Variables:

    ANDROID_HOME : /Users/oliverwaterkamp/Library/Android/sdk

Misc:

    backend : pro

Best regards,
Oliver