I'm currently building an app the will be using the Apache Cordova Facebook Plugin to communicate and authenticate users.
I had it working about a month ago, and then I was getting close to the end of development when I decided to upgrade to the newest version of Apache Cordova Facebook Plugin and Facebook SDK - now I cannot get it functioning.
I'm not sure if Facebook has changed something, or if Cordova Facebook Connect plugin has issues now - I am literally stuck :(
Here are the steps I'm taking and my results:
NOTE: I have deleted all programs and SDK's from my computer each time before attempting this to eliminate any cross version issues.
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64./adb install ~/facebook-android-sdk-3.14/bin/FBAndroid-7.0.0.apksudo npm install -g cordovacordova create hello com.example.hello "HelloWorld"cd hellocordova platform add androidcordova buildcordova -d plugin add https://github.com/phonegap/phonegap-facebook-plugin.git --variable APP_ID="123456789" --variable APP_NAME="myApplication"Fetching plugin "https://github.com/phonegap/phonegap-facebook-plugin.git" via git cloneInstalling "com.phonegap.plugins.facebookconnect" for androidHelloWorld
Once HelloWorld opens errors comes up:
Cordova Facebook Connect plugin fail on initCordova Facebook Connect plugin fail on auth.statusLike I said - I have tried manual installs and CLI installs, none will work!
Other versions that I have tried:
This issue is causing major delay in our development and I have seen others online that are having the same problem, but no replies or answers.
Thanks for any help!
Did you try fixing the target for config.xml for Facebook SDK 3.8.0 ?
<config-file target="res/xml/config.xml" parent="/*">
<feature name="org.apache.cordova.facebook.Connect">
<param name="android-package" value="org.apache.cordova.facebook.ConnectPlugin" />
</feature>
</config-file>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With