title: why is my facebook application keeps refreshing after sending invitations?
body: <p>i'm using this code to invite friends to my facebook application </p>
  
  <pre><code>&lt;?php 
  
       $app_id = "12165444444444444";
  
       $canvas_page = "http://www.domain.net/facebook/app/";
  
       $message = "Would you like to join me in this great app?";
  
       $requests_url = "https://www.facebook.com/dialog/apprequests?app_id=" 
              . $app_id . "&amp;redirect_uri=" . urlencode($canvas_page)
              . "&amp;message=" . $message;
  
       if (empty($_REQUEST["request_ids"])) {
          echo("&lt;script&gt; top.location.href='" . $requests_url . "'&lt;/script&gt;");
       } else {
          echo "Request Ids: ";
          print_r($_REQUEST["request_ids"]);
       }
  </code></pre>
  
  <p>?></p>
  
  <p>but after sending the invitations the page keeps refreshing in like infinit loop</p>
  
  <p>what is wrong with that?</p>