title: PhoneGap Facebook plugin connect with Android
body: <p>I have a problem using the <a href="http://en.wikipedia.org/wiki/Facebook_Platform#Facebook_Connect" rel="nofollow noreferrer">Facebook Connect</a> plugin with <a href="http://en.wikipedia.org/wiki/PhoneGap" rel="nofollow noreferrer">PhoneGap</a>.</p>
  
  <p>I have added this line to file <code>plugins.xml</code>:</p>
  
  <pre><code>&lt;plugin name="com.phonegap.facebook.Connect" value="com.phonegap.facebook.ConnectPlugin" /&gt;
  </code></pre>
  
  <p>And this <em>include</em> on in file <code>FbDialog.java</code>:</p>
  
  <pre><code>import com.phonegap.helloworld.R;
  </code></pre>
  
  <p>I have these files on <code>src</code>:</p>
  
  <pre><code>com
     /facebook/android/
                       AsyncFacebookRunner.java
                       DialogError.java
                       Facebook.java
                       FacebookError.java
                       FbDialog.java
                       Util.java
     /phonegap/
               facebook/ConnectPlugin.java
               helloworld/HelloPhoneGapActivity.java
  </code></pre>
  
  <p>The ressources files close and the icon is copied. In HTML, I include some JavaScript code:</p>
  
  <pre><code>cordova-1.6.1.js
  cdv-plugin-fb-connect.js
  facebook_js_sdk.js
  </code></pre>
  
  <p>I use the default HTML example with my appId.</p>
  
  <p>When I run application on my Android phone, a dialog says:</p>
  
  <blockquote>
    <p>Cordova Facebook connect plugin fail on init!</p>
  </blockquote>
  
  <p>and </p>
  
  <blockquote>
    <p>Cordova Facebook connect plugin fail on auth.status!</p>
  </blockquote>
  
  <p>If I click the login bouton, the dialog says:</p>
  
  <blockquote>
    <p>Cordova Facebook connect plugin fail on login!Class not found</p>
  </blockquote>
  
  <p>And the <a href="http://en.wikipedia.org/wiki/Eclipse_%28software%29" rel="nofollow noreferrer">Eclipse</a> console log is:</p>
  
  <p><img src="https://i.stack.imgur.com/V4ZJs.png" alt="Enter image description here"></p>
  
  <p>I tried to install this with the officiel <a href="http://en.wikipedia.org/wiki/Git_%28software%29" rel="nofollow noreferrer">Git</a> readme and the 
  tutorial <em><a href="http://marguspala.com/add-facebook-login-to-phonegap-android-app-easiest-way/comment-page-1/#comment-156963" rel="nofollow noreferrer">Add Facebook login to PhoneGap/Cordova Android app Easiest way</a></em>.</p>
  
  <p>When I compile the application, I don't get the error.</p>
  
  <p>How do I fix this problem?</p>