title: Facebook Login Error Using Parse Javascript SDK
body: <p>I'm trying to log into Facebook via Parse in a PhoneGap project made for Android.</p>
  
  <p>When I try to run the HTML locally, the pop-up will appear but I get the generic "an error occurred" message. When I run the Android project, the Facebook pop-up/redirect won't even appear.</p>
  
  <pre><code>    &lt;script type="text/javascript" charset="utf-8" src="cordova-1.9.0.js"&gt;&lt;/script&gt;
      &lt;script src="http://www.parsecdn.com/js/parse-1.0.8.min.js"&gt;&lt;/script&gt;
      &lt;script&gt;
          Parse.initialize("XXXXXXX", 
          "YYYYYY");
  
      &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
      &lt;div id="fb-root"&gt;&lt;/div&gt;
      &lt;script&gt;
      window.fbAsyncInit = function() {
          Parse.FacebookUtils.init({
          appId      : 'ZZZZZZZ', // App ID
          channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File
          status     : true, // check login status
          cookie     : true, // enable cookies to allow the server to access the session
          xfbml      : true  // parse XFBML
      });
  
      // Additional initialization code here
      Parse.FacebookUtils.logIn(null, {
          success: function(user) {
              if (!user.existed()) {
              alert("User signed up and logged in through Facebook!");
          } else {
              alert("User logged in through Facebook!");
          }
      },
          error: function(user, error) {
              alert("User cancelled the Facebook login or did not fully authorize.");
          }
      });
  };
  
    // Load the SDK Asynchronously
    (function(d){
       var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
       if (d.getElementById(id)) {return;}
       js = d.createElement('script'); js.id = id; js.async = true;
       js.src = "//connect.facebook.net/en_US/all.js";
       ref.parentNode.insertBefore(js, ref);
     }(document));
  &lt;/script&gt;
  
      &lt;h1&gt;Hello World&lt;/h1&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>So, I'd love to get this working. Thanks in advance for any help! :)</p>
  
  <p>Update - This is the error information I get:</p>
  
  <p>API Error Code: 191
  API Error Description: The specified URL is not owned by the application
  Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration.</p>