Phonegap-facebook-plugin


#1

I’ve been using this plugin for a couple of months without any issues on both android and iOS, today it decided to stop. Works fine on android, just iOS not playing nice. If i remove the pluing app and emulator work fine.

running on latest ionic update.
xcode version 7.2.1
ionic version 1.7.14

Error under xcode:
/Plugins/com.phonegap.plugins.facebookconnect/FacebookConnectPlugin.m:27:44: No visible @interface for ‘CDVPlugin’ declares the selector ‘initWithWebView:’

Error on command line:
The following build commands failed:
CompileC build/my_project.build/Debug-iphonesimulator/my_project.build/Objects-normal/i386/FacebookConnectPlugin.o my_project/Plugins/phonegap-facebook-plugin/FacebookConnectPlugin.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Plugin url:

NOTE: i am running the plugin locally for installation.

Any help is much appreciated.


#2

After banging my head against a wall for a few days, I found that others were having the same issue though it was labeled as a “cordova 6” problem.

Original github issue: https://github.com/Wizcorp/phonegap-facebook-plugin/issues/1227

Eventually whilst scrolling through known bugs under github for “phonegap-facebook-plugin” i noticed that similar errors had occurred on a previous release, then super Jeduan re-wrote the plugin and released it under the following:

Plugin fix: https://github.com/jeduan/cordova-plugin-facebook4

The above appears to be working find under cordova 6, xcode version 7.2.1 and ionic version 1.7.14