title: facebook apprequests dialog error "An error occurred. Please try again later."
body: <p>I am trying to build-in 'invite a friend' in my app. I am using FB.ui. It seems to work (I am using standard code from <a href="http://developers.facebook.com/blog/post/464/">http://developers.facebook.com/blog/post/464/</a>.</p>
  
  <p>But the iframe where you should be able to send a request to your friends just says: "An error occurred. Please try again later."</p>
  
  <p>I didn't forget to use access token.</p>
  
  <pre><code>echo '&lt;div id="fb-root"&gt;&lt;/div&gt;';
  echo '&lt;script src="http://connect.facebook.net/en_US/all.js"&gt;';
  echo '  &lt;/script&gt;';
  echo '  &lt;script&gt;';
  echo "    FB.init({appId:'215089721847404', cookie:true, status:true, xfbml:true});";
  
  echo "    FB.ui({ method: 'apprequests', message: 'Here is a new Requests dialog...', display: 'iframe', access_token: '$token'});";
  echo '  &lt;/script&gt;';
  </code></pre>
  
  <p>Did fb stop allowing request dialogs from within apps? Or am I doing something wrong? Does someone have another solution? Please help.</p>
  
  <p>Update: Maybe that is because I didn't put redirect_uri. Now I did and it doesn't give the error, but now the iframe just doesn't stop loading...
  Does anyone have an idea?</p>