I am using the following url for sending an app generated request to a user:
https://graph.facebook.com/apprequests/?ids=“.$userid.”&message=Hello&access_token=”.$appToken.”&method=post
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:
{“error”:{“message”:”(#2) Failed to create any app request”,”type”:”OAuthException”,”code”:2}}
This worked for me:
Hope it helps