I’m trying to send a facebook request from the server side api (php).
I user this code:
https://graph.facebook.com/" . $f2 . "/apprequests?message=NewMatchpoint&data=invite_data&".$access_token."&method=post
and this is the response I get:
{"request":"355954047749908","to":["100001821928954"]}
I assume this means it worked, and the app request was sent, but the recipient receives nothing…
Did someone ever encounter this behavior?
Thanks…
Yes; That means that the request was sent successfully. You can validate that request by querying the Graph API like so :
"https://graph.facebook.com/$REQUEST_ID.'_'.$FBID".You have to concatenate the request_id and the users Facebook id with an underscore.
Make sure (if your application is in sandbox mode) that the users you are sending the requests to are listed in the “roles” section of your applications settings…