title: Apache Cordova Facebook Plugin Fail On Init - Android
body: <p>I'm currently building an app the will be using the Apache Cordova Facebook Plugin to communicate and authenticate users.</p>
  
  <p>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.</p>
  
  <p>I'm not sure if Facebook has changed something, or if Cordova Facebook Connect plugin has issues now - I am literally stuck :(</p>
  
  <p>Here are the steps I'm taking and my results:</p>
  
  <p><strong>NOTE: I have deleted all programs and SDK's from my computer each time before attempting this to eliminate any cross version issues.</strong></p>
  
  <ul>
  <li>Create a Facebook App (followed instructions: <a href="https://developers.facebook.com/docs/android/getting-started#create-app">https://developers.facebook.com/docs/android/getting-started#create-app</a>)
  <ul>
  <li>Add Android Platform To App</li>
  <li>Create a Key Hash using 'keytool' on OSX
  <ul>
  <li><code>keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64</code></li>
  </ul></li>
  </ul></li>
  <li>Download latest Facebook SDK (<a href="https://developers.facebook.com/resources/facebook-android-sdk-current.zip">https://developers.facebook.com/resources/facebook-android-sdk-current.zip</a>)</li>
  <li>Installed the Facebook APK (<a href="https://developers.facebook.com/docs/android/getting-started#install">https://developers.facebook.com/docs/android/getting-started#install</a>)
  <ul>
  <li><code>./adb install ~/facebook-android-sdk-3.14/bin/FBAndroid-7.0.0.apk</code></li>
  </ul></li>
  <li>Installed Eclipse Kepler Service Release 2</li>
  <li>Installed the latest Android SDK (followed instructions: <a href="http://developer.android.com/sdk/installing/installing-adt.html">http://developer.android.com/sdk/installing/installing-adt.html</a>)</li>
  <li>Installed NodeJS (NPM 1.4.3) to install Cordova 3.4.1-0.1.0 (Terminal)
  <ul>
  <li><code>sudo npm install -g cordova</code></li>
  </ul></li>
  <li>Create Cordova Application
  <ul>
  <li><code>cordova create hello com.example.hello "HelloWorld"</code></li>
  <li><code>cd hello</code></li>
  <li><code>cordova platform add android</code></li>
  <li><code>cordova build</code></li>
  </ul></li>
  <li>Installed Cordova Facebook Plugin
  <ul>
  <li>Installing using the command line interface (CLI):
  <ul>
  <li><code>cordova -d plugin add https://github.com/phonegap/phonegap-facebook-plugin.git --variable APP_ID="123456789" --variable APP_NAME="myApplication"</code></li>
  <li><code>Fetching plugin "https://github.com/phonegap/phonegap-facebook-plugin.git" via git clone</code></li>
  <li><code>Installing "com.phonegap.plugins.facebookconnect" for android</code></li>
  </ul></li>
  <li>NOTE: I also have tried manual installing using the following instructions: <a href="https://github.com/phonegap/phonegap-facebook-plugin">https://github.com/phonegap/phonegap-facebook-plugin</a></li>
  </ul></li>
  <li>Open Eclipse > File > Import > + Android > select Existing Android Code into Workspace
  <ul>
  <li>Import <code>HelloWorld</code></li>
  <li>Select App Properties > Android > add FacebookSDK as a library</li>
  <li>Copy the "Simple" example that came with Cordova Facebook Connect (<a href="https://github.com/phonegap/phonegap-facebook-plugin/tree/master/example/Simple">https://github.com/phonegap/phonegap-facebook-plugin/tree/master/example/Simple</a>)</li>
  <li>index.html is correctly linking to:
  <ul>
  <li>cordova.js</li>
  <li>cdv-plugin-fb-connect.js</li>
  <li>facebook-js-sdk.js</li>
  </ul></li>
  </ul></li>
  <li>Project > Clean</li>
  <li>Run with the Nexus S simulator</li>
  </ul>
  
  <p>Once HelloWorld opens errors comes up:</p>
  
  <ul>
  <li><code>Cordova Facebook Connect plugin fail on init</code></li>
  <li><code>Cordova Facebook Connect plugin fail on auth.status</code></li>
  </ul>
  
  <p><strong>Like I said - I have tried manual installs and CLI installs, none will work!</strong></p>
  
  <p>Other versions that I have tried:</p>
  
  <ul>
  <li>Cordova 3.3.0, 3.3.1, 3.4.0, 3.4.1</li>
  <li>Facebook SDK 3.6, 3.7, 3.8, 3.9</li>
  <li>Android Studio instead of Eclipse</li>
  </ul>
  
  <p>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.</p>
  
  <p><em>Thanks for any help!</em></p>