title: Testing facebook javascript Login from localhost domain
body: <p>I have just followed the excellent guide here : <a href="https://developers.facebook.com/docs/facebook-login/login-flow-for-web/v2.0" rel="noreferrer">https://developers.facebook.com/docs/facebook-login/login-flow-for-web/v2.0</a> on how to enable facebook login for a website using the Javascript SDK.</p>
  
  <p>I have tried it - and when I click my nice log in button I get the error:</p>
  
  <pre><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></pre>
  
  <p>I note the URL for this error :</p>
  
  <pre><code>https://www.facebook.com/v2.0/dialog/oauth?scope=public_profile%2Cemail&amp;response_type=none&amp;redirect_uri=https%3A%2F%2Fwww.facebook.com%2Fdialog%2Freturn%2Farbiter%3Frelation%3Dopener%26close%3Dtrue%23origin%3Dhttp%253A%252F%252Flocalhost%253A56378%252Ff1c45491ec&amp;seen_revocable_perms_nux=false&amp;ref=LoginButton&amp;auth_type=&amp;default_audience&amp;state=fdcac98d4&amp;app_id=251165285007053&amp;client_id=251165285007053&amp;display=popup
  </code></pre>
  
  <p>So I go to my facebook app and add in my no-ip hostname, and 'localhost' - it doesnt like localhost so I remove it.</p>
  
  <p>However I still get the message as the request is still being sent from domain localhost.</p>
  
  <p>Is there a way I can test this running locally? I do not have a domain to deploy to during development.</p>