title: How can I send facebook app generated requests using php?
body: <p>I am using the following url for sending an app generated request to a user:</p>
  
  <p><a href="https://graph.facebook.com/apprequests/?ids=" rel="nofollow">https://graph.facebook.com/apprequests/?ids=</a>".$userid."&amp;message=Hello&amp;access_token=".$appToken."&amp;method=post</p>
  
  <p>This works fine if the $userid is set as current logged in user. But I am not able to send a request to my friend who is an app user and the above code throws the following error:</p>
  
  <p>{"error":{"message":"(#2) Failed to create any app request","type":"OAuthException","code":2}}</p>