Open abcnever opened 10 years ago
So what did you do? My build keeps breaking. I've tried commenting out one and the other. I've tried deleting one and the other. I keep getting this error.
@ajbraus I gave up on the newer plugin. downloaded 0.4.2 instead ( https://github.com/phonegap/phonegap-facebook-plugin/releases/tag/0.4.2 ) and it worked out perfectly.
edit: in case you don't know how to use the old version. just add it with cordova CLI.
cordova -d plugin add path/to/4.2/release/ --variable APP_ID="YOUR_FB_APP_ID" --variable APP_NAME="YOUR_APP_NAME"
and add this to your config.xml
<feature name="org.apache.cordova.facebook.Connect">
<param name="android-package" value="org.apache.cordova.facebook.ConnectPlugin" />
<param name="ios-package" value="FacebookConnectPlugin" />
</feature>
Did you just drop the files in and build, or did you have to do a manual installation? Thanks!
@ajbraus cordova CLI should be automatic. download the 0.4.2 release, unzip / unpack it to a directory, and just pass in the plugin directory with cordova CLI. for example if you unpacked it to ~/src/phonegap- facebook-plugin/ type in the following command
cordova -d plugin add ~/src/phonegap-facebook-plugin/ --variable APP_ID="<YOUR_FB_APP_ID>" --variable APP_NAME="<YOUR_APP_NAME>"
i also recommend the newest cordova (3.5.xx).
and of course add that feature tag to your config.xml
then your build should be working fine from that point on
Is there any solution for this in latest version? It makes plugin not useable.
@chintans I don't understand the issue here: where else is this attrs.xml
file?
When I tried to build after the new automatic installation process, conflict is reported:
it turns out that the same attrs.xml also exists under platforms/android/FacebookLib/res/values