Facebook API - Plugins not found


#1

Hello,

I’m working a tutorial for Ionic 2 to login with Facebook. I followed the guides on ionic about Ionic Native Facebook (http://ionicframework.com/docs/v2/native/facebook/). I’m also updated to the latest version of Cordova 6.2.0.

I’m also working the latest beta release for Ionic where the major change was to use @Component instead of @App.

I’m very sure my config.xml file is setup correctly with the correct APP_ID and APP_NAME as well as the widget ID.

These are the plugins I have installed:

cordova-plugin-console 1.0.3 "Console"

cordova-plugin-crosswalk-webview 1.7.2 "Crosswalk WebView Engine"

cordova-plugin-device 1.1.2 "Device"

cordova-plugin-facebook4 1.7.1 "Facebook Connect"

cordova-plugin-inappbrowser 1.4.0 "InAppBrowser"

cordova-plugin-splashscreen 3.2.2 "Splashscreen"

cordova-plugin-statusbar 2.1.3 "StatusBar"

cordova-plugin-whitelist 1.2.2 "Whitelist"

ionic-plugin-keyboard 2.2.0 "Keyboard"

After searching for hours it looks like I keep getting an issue that came up a lot in 2013/2014 but I can’t find anyone having a recent issue with this. I keep getting these errors when I run ionic emulate ios and click to login to facebook:

Jun  8 07:44:07 Dans-MBP nanoregistrylaunchd[2037]: Failed to enable path: code = 2: No such file or directory, /System/Library/NanoLaunchDaemons
Jun  8 07:44:07 Dans-MBP camperchat2[2033]: Resetting plugins due to page load.
Jun  8 07:44:08 Dans-MBP camperchat2[2033]: Finished load of: file:///Users/Dan/Library/Developer/CoreSimulator/Devices/322AFAC6-9254-4B20-8626-FA1914589386/data/Containers/Bundle/Application/40617934-EDD7-46BD-8476-E4F481ABF41A/camperchat2.app/www/index.html
Jun  8 07:44:08 Dans-MBP camperchat2[2033]: CDVPlugin class CDVDevice (pluginName: Device) does not exist.
Jun  8 07:44:08 Dans-MBP camperchat2[2033]: ERROR: Plugin 'Device' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
Jun  8 07:44:08 Dans-MBP camperchat2[2033]: -[CDVCommandQueue executePending] [Line 142] FAILED pluginJSON = ["Device1512920204","Device","getDeviceInfo",[]]
Jun  8 07:44:08 Dans-MBP camperchat2[2033]: CDVPlugin class CDVStatusBar (pluginName: StatusBar) does not exist.
Jun  8 07:44:08 Dans-MBP camperchat2[2033]: ERROR: Plugin 'StatusBar' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
Jun  8 07:44:08 Dans-MBP camperchat2[2033]: -[CDVCommandQueue executePending] [Line 142] FAILED pluginJSON = ["StatusBar1512920205","StatusBar","_ready",[]]
Jun  8 07:44:09 Dans-MBP camperchat2[2033]: CDVPlugin class FacebookConnectPlugin (pluginName: FacebookConnectPlugin) does not exist.
Jun  8 07:44:09 Dans-MBP camperchat2[2033]: ERROR: Plugin 'FacebookConnectPlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
Jun  8 07:44:09 Dans-MBP camperchat2[2033]: -[CDVCommandQueue executePending] [Line 142] FAILED pluginJSON = ["FacebookConnectPlugin1512920206","FacebookConnectPlugin","login",["public_profile"]]
Jun  8 07:44:31 Dans-MBP lsd[2012]: LaunchServices: Currently 0 installed placeholders: (
	)
Jun  8 07:44:43 Dans-MBP mstreamd[1987]: (Note ) PS: Media stream daemon stopping.
Jun  8 07:44:43 Dans-MBP mstreamd[1987]: (Note ) AS: <MSIOSAlbumSharingDaemon: 0x7ffbd8d06680>: Shared Streams daemon has shut down.
Jun  8 07:44:43 Dans-MBP mstreamd[1987]: (Warn ) mstreamd: mstreamd shutting down.

Is anyone else having these issues?


#2

Could be an error in moving the plugins over. A simple sanity test would be to remove the platform, then add it back. It should auto install the plugins.


#3

I removed the platform file then ran “ionic platform add ios.” Then the build failed and I ran “ionic platform update ios.” Then the build succeeded but I’m still getting the same errors.