title: Facebook API simple authorization failing javascript
body: <p>I have the following in my source code. I get the alert "No Response" and then the facebook page says 
  "An error occurred with MYAPP. Please try again later"</p>
  
  <pre><code>&lt;div id="fb-root"&gt;&lt;/div&gt;
  &lt;script src="http://connect.facebook.net/en_US/all.js" charset="utf-8"&gt;&lt;/script&gt;
  &lt;script&gt;
      FB.init({appId: 'MYAPPID',status: true, cookie:true, xfbml: true});
  &lt;/script&gt;
  &lt;script&gt;
      FB.getLoginStatus(function(response){
          if(!response.session){
          alert("NO RESPONSE");
          top.location.href="http://www.facebook.com/dialog/oauth?client_id=MYAPPID&amp;redirect_uri=http://MYWEBSITE";
          }
      });
  </code></pre>
  
  <p></p>
  
  <p>Can't see where/if I have gone wrong here.</p>
  
  <p>Thanks</p>
  
  <p>I am getting now the following error:</p>
  
  <pre><code>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.
  </code></pre>