Wizcorp / phonegap-facebook-plugin

The official plugin for Facebook in Apache Cordova/PhoneGap
Other
1.91k stars 2k forks source link

Phonegap Build Fails with cli-6.0.0 #1258

Open benmcmaster opened 8 years ago

benmcmaster commented 8 years ago

Using this in my config.xml: (with legit app id and name)

<plugin name="phonegap-facebook-plugin" source="npm" version="0.12.0">
        <param name="APP_ID" value="<my app id>" />
        <param name="APP_NAME" value="<my app name>" />
</plugin>

Getting:

** BUILD FAILED **

The following build commands failed:
    CompileC build/VimifyDev.build/Release-iphoneos/VimifyDev.build/Objects-normal/armv7/FacebookConnectPlugin.o VimifyDev/Plugins/phonegap-facebook-plugin/FacebookConnectPlugin.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
garfunkle87 commented 8 years ago

+1

andrewbusch7 commented 8 years ago

It didn't give you any more error info than that? That's a bit uninformative as is.

jspenc72 commented 8 years ago

facebookconnectplugin Here is the issue

jspenc72 commented 8 years ago

Your system information:

Cordova CLI: 6.0.0
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: 1.8.6 
ios-sim version: 3.1.1 
OS: Mac OS X El Capitan
Node Version: v4.2.2
Xcode version: Xcode 7.3 Build version 7D175 
jspenc72 commented 8 years ago

Use this instead https://github.com/jeduan/cordova-plugin-facebook4

jspenc72 commented 8 years ago

It works for me.

firefountain commented 8 years ago

Having the same issue here as @jspenc72

jspenc72 commented 8 years ago

@firefountain Use this plugin instead. https://github.com/jeduan/cordova-plugin-facebook4

jspenc72 commented 8 years ago

Its compatible with Cordova 4.0 +

salcott commented 8 years ago

That cordova-plugin-facebook4 uses Facebook SDK v4 which I believe does not allow Single SIgn On any more. At least, I cannot get that fork to work!