title: Facebook OAuth redirect_uri problem 'Given URL is not permitted by the application configuration.'
body: <p>When asking for authorisation by redirecting to the following url:</p>
  
  <pre><code>https://graph.facebook.com/oauth/authorize?client_id=144921372242843&amp;redirect_uri=http://localhost:18080/grails/facebook/facebookLogin&amp;scope=user_about_me
  </code></pre>
  
  <p>Facebook returns the error message (in JSON):</p>
  
  <blockquote>
    <p>Invalid redirect_uri Given URL is not permitted by the application configuration.'</p>
  </blockquote>
  
  <p>If I change the port number used in <code>redirect_uri</code> from 18080 to 8080 it works fine. Does anyone know which ports Facebook will accept (and why)?</p>