title: Facebook apprequest error
body: <p>Good day, everyone!
  I have a problem with apprequests.
  When i use Request Dialog, i have response with request id. Here is the code:</p>
  
  <pre><code>&lt;html xmlns:fb="http://www.facebook.com/2008/fbml"&gt;
  &lt;body&gt;
  &lt;script src="http://connect.facebook.net/en_US/all.js"&gt;&lt;/script&gt;
  &lt;div id="fb-root"&gt;&lt;/div&gt;
  &lt;script&gt;
  
  FB.init({appId:'400884386588720', xfbml:true, cookie:true});
  
  var too = new Array('100003484704320');
  function send() {
      FB.ui({
          method:'apprequests',
          message:'http://wasm.ru',
          to:too
      }, function (response) {
          var request = response.request;
          var request_id = request + '_' + too[0];
          console.log(request_id);
      });
  }
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;input type="button" onclick="send(); return true;" value='Request'&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But user can't see this request! When facebook page refreshing, i can  see notification, but after loading it disappears.</p>
  
  <p>When i try use Graph Api, i have an error:
      [error]  =>  stdClass  Object
                  (
                       [message]  =>  (#200)  All users in param ids must  have accepted TOS
                       [type]  =>  OAuthException
                       [code]  =>  200
                  )</p>
  
  <p>Here is the code:</p>
  
  <pre><code>$token_url = "https://graph.facebook.com/oauth/access_token?" .
                      "client_id=" . $this-&gt;app_id.
                      "&amp;client_secret=" . $this-&gt;secret .
                      "&amp;grant_type=client_credentials";
  $app_token = $this-&gt;request($token_url, 'POST');
  $app_token = explode('=', $app_token);
  $app_token = $app_token[1];
  
  $message="Message with space and with link - http://wasm.ru";
  $message = urlencode($message);
  
  $url = 'https://graph.facebook.com/'.$user.'/apprequests?'.'message='.$message.'&amp;access_token='.$app_token.'&amp;method=post';
  $res = $this-&gt;request($url, 'POST');
  </code></pre>
  
  <p>And the request function:</p>
  
  <pre><code> $ch = curl_init();
      $options = array();
      $options[CURLOPT_URL] = $url;
      $options[CURLOPT_SSL_VERIFYPEER] = false;
      $options[CURLOPT_RETURNTRANSFER] = true;
  
      if($method == 'get') {
          $options[CURLOPT_HTTPGET] = true;
      } else {
          $options[CURLOPT_CUSTOMREQUEST]= 'POST';
      }
      curl_setopt_array($ch, $options);
      $response = curl_exec($ch);
      if($action == 'access_token'){
          return $response;
      }
      $response = json_decode($response);
      return $response;
  </code></pre>
  
  <p>I can't find error... Help!
  Thanks.</p>