title: Facebook login, redirect_uri is not owned by the application. why?
body: <p>I can't add FB login to my site. I simply registered the application:</p>
  
  <pre><code>URL: http://www.chusmix.com/
  DOMAIN: www.chusmix.com
  </code></pre>
  
  <p>And then I pasted the login code and replaced my APP id in it:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;html&gt;
    &lt;head&gt;
    &lt;/head&gt;
    &lt;body&gt;
     &lt;div id="fb-root"&gt;&lt;/div&gt;
        &lt;script src="http://connect.facebook.net/en_US/all.js"&gt;&lt;/script&gt;
        &lt;script&gt;
           FB.init({ 
              appId:'212044715486306', cookie:true, 
              status:true, xfbml:true 
           });
        &lt;/script&gt;
        &lt;fb:login-button&gt;Login with Facebook&lt;/fb:login-button&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>However when clicking the login button I get <code>Error 191: redirect_uri is not owned by the application</code></p>
  
  <p>Also this code is in the page: <a href="http://www.chusmix.com/game/" rel="nofollow noreferrer">http://www.chusmix.com/game/</a> according to what Facebook says filling the field DOMAIN makes all pages in the domain able to use Facebook Authorization. However I also tried pointing directly to the domain where the Login Button is and I get the same error.</p>
  
  <p>There isn't even a redirect url.</p>
  
  <hr>
  
  <p><strong>Update:</strong> It seems the Login works in <a href="http://www.chusmix.com/game/" rel="nofollow noreferrer">http://www.chusmix.com/game/</a> but doesn't on <a href="http://chusmix.com/game/" rel="nofollow noreferrer">http://chusmix.com/game/</a> (without www).</p>
  
  <p>Is there a way to make it work if the user doesn't type www.? Or do I have to use a redirect?</p>