title: FB.login Invalid redirect_uri (xd_proxy.php)
body: <p>So, I'm using the Facebook JS SDK, and I keep getting 191:</p>
  
  <p>Now, I have checked my settings, and everything seems to be in order. App Domain is set to my base domain (alehunt.com), and "Website with Facebook Login" => "Site URL:" is set to "http://www.alehunt.com". I'm not doing any canvas-related stuff.</p>
  
  <p>When looking at the URL for the login dialog window produced by FB.login I'm quite surprised to see that redirect_uri does not point directly to my app, but instead goes via <a href="http://static.ak.fbcdn.net/connect/xd_proxy.php" rel="nofollow">http://static.ak.fbcdn.net/connect/xd_proxy.php</a>. I'm wondering if this is the reason for the 191 error.</p>
  
  <p>Now, if I change that part of the redirect_uri to be my own everything seems to work just fine. The dialog is presented as it should.</p>
  
  <p>The complete URL is <a href="https://www.facebook.com/dialog/oauth?api_key=MYAPPID&amp;app_id=MYAPPID&amp;client_id=MYAPPID&amp;display=popup&amp;domain=www.alehunt.com&amp;origin=1&amp;redirect_uri=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%23cb%3Df2f3026b8%26origin%3Dhttp%253A%252F%252Fwww.alehunt.com%252Ff298bcee3c%26relation%3Dopener%26transport%3Dpostmessage%26frame%3Df3d63e980c&amp;response_type=token%2Csigned_request&amp;scope=email&amp;sdk=joey" rel="nofollow">https://www.facebook.com/dialog/oauth?api_key=MYAPPID&amp;app_id=MYAPPID&amp;client_id=MYAPPID&amp;display=popup&amp;domain=www.alehunt.com&amp;origin=1&amp;redirect_uri=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%23cb%3Df2f3026b8%26origin%3Dhttp%253A%252F%252Fwww.alehunt.com%252Ff298bcee3c%26relation%3Dopener%26transport%3Dpostmessage%26frame%3Df3d63e980c&amp;response_type=token%2Csigned_request&amp;scope=email&amp;sdk=joey</a></p>
  
  <p>Can anyone shed some light on this? Why is the JS SDK insisting on setting all this in the redirect URI?</p>
  
  <p>The error I'm seeing is:</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>
  
  <p>I'm testing in Chrome 21</p>