title: Facebook returning error message when using Firebase Login
body: <p>I am trying to use a Firebase Facebook login in the following way:</p>
  
  <p>Added this to my HTML (to test):</p>
  
  <pre><code>&lt;div
    class="fb-like"
    data-share="true"
    data-width="450"
    data-show-faces="true"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and the firebase script:</p>
  
  <p><code>&lt;script src="https://cdn.firebase.com/js/client/2.2.5/firebase.js"&gt;&lt;/script&gt;</code></p>
  
  <p>This in my module:</p>
  
  <p><code>var app = angular.module('myApp' ['firebase']);</code></p>
  
  <p>and then inside my controller:</p>
  
  <pre><code>controller('yokoAppCtrl', function($scope, $firebaseObject, $firebaseAuth, wordsFactory){
    var ref = new Firebase("https://resplendent-fire-4284.firebaseio.com/data");
  
    // download the data into a local object
    var syncObject = $firebaseObject(ref);
    // synchronize the object with a three-way data binding
    // click on `index.html` above to see it used in the DOM!
    syncObject.$bindTo($scope, "data");
  
  
    // create an instance of the authentication service
    var auth = $firebaseAuth(ref);
  
    // login with Facebook
    auth.$authWithOAuthPopup("facebook").then(function(authData) {
      console.log("Logged in as:", authData.uid);
    }).catch(function(error) {
      console.log("Authentication failed:", error);
    });
  })
  </code></pre>
  
  <p>When I reload the page in <code>localhost:8000</code> I get the following message from Facebook:</p>
  
  <p><code>Given URL is not allowed by the Application configuration: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.</code></p>
  
  <p>I followed the Firebase docs and this stackoverflow url: <a href="https://stackoverflow.com/questions/25225280/facebook-app-firebase-simple-login-url-error">Facebook App: Firebase Simple Login URL error</a> but I am still lost.</p>
  
  <p>Under Site URL my app has <code>http://localhost:8000/</code>, I also tried to include under domain name <code>localhost:8000</code> but Facebook removes it saying <code>"No Top-Level Domains allowed"</code>. This is all under "Basic" Settings.
  Under "Advanced" I have the following under <code>Valid OAuth redirect URIs</code>:</p>
  
  <p><code>https://auth.firebase.com/v2/&lt;myFirebase&gt;/auth/facebook/callback
  http://localhost:8080/
  https://auth.firebase.com/auth/facebook/callback</code></p>
  
  <p>and I already enabled Facebook connection in Firebase. What am I missing?</p>