title: Creating facebook apprequests
body: <p>I'm trying to send a message from an app to a user when a specific event happens. Right now I have this code</p>
  
  <pre><code>$param = array(
     'message'      =&gt; 'XYZ shared a file with you',
     'data'         =&gt; 'additiona_string_data',
     'access_token' =&gt; $facebook-&gt;getAccessToken(),
  );
  $tmp = $facebook-&gt;api("/$uid/apprequests", "POST", $param);
  </code></pre>
  
  <p>but I always get <code>Uncaught OAuthException: (#2) Failed to create any app request thrown</code></p>
  
  <p>I don't know where is the problem.</p>