Closed minimedj closed 9 years ago
For those who might be interested you do it this way:
https://graph.facebook.com/me/apprequests?fields=id,application,to,from,data,message,action_type,object,created_time&access_token=ACCESS_TOKEN
You will het nice JSON that shows you all requests with data
field attached.
There are also helper methods built in to the ANE which help with loading app request data.
When your app starts up from someone accepting a request, a FacebookAppRequestEvent.APP_REQUESTS_FOUND event will be dispatched.
If you get this event, you can use the FacebookAPI.service.loadAppRequestInfo() method to load data about them.
This stuff is covered in the documentation as well:
Your method should work anyway as these helper functions are just wrappers for the graph API.
Hi guys,
To invite friends to my game I use the following code:
How I can retrieve
params.data = "my_payload";
when invitation is being accepted?