title: com.facebook.sdk error 2 occurs when login to Facebook
body: <p>I am trying to use Facebook plugin for phone gap but getting error message <br></p>
  
  <blockquote>
    <p>"the operation couldn't be completed com.facebook.error 2"</p>
  </blockquote>
  
  <p><br>
  I guess my bundle identifier does not match for Facebook but I am not sure <br>
  what I missed for bundle identifier match... check if my code missing 
  something for bundle identifier matching?</p>
  
  <p>deviceready function : </p>
  
  <pre><code>document.addEventListener('deviceready', function() {
       try {
         alert('Device is ready! Make sure you set your app_id below this alert.');
         FB.init({ appId: "120048634820284", nativeInterface: CDV.FB, useCachedDialogs: false });
         document.getElementById('data').innerHTML = "";
       } catch (e) {
              alert(e);
       }
  }, false);
  </code></pre>
  
  <p>info.plist file</p>
  
  <pre><code>&lt;key&gt;CFBundleURLTypes&lt;/key&gt;
  &lt;array&gt;
      &lt;dict&gt;
          &lt;key&gt;CFBundleURLName&lt;/key&gt;
          &lt;string&gt;com.mycompany.myapp&lt;/string&gt;
          &lt;key&gt;CFBUndleURLSchemes&lt;/key&gt;
          &lt;array&gt;
              &lt;string&gt;fb120048634820284&lt;/string&gt;
          &lt;/array&gt;
      &lt;/dict&gt;
  &lt;/array&gt;
  </code></pre>