Professional Documents
Culture Documents
Parameters
path string The graph API path to perform the request against.
method string? HTTP method that will be used for this request. GET is the default if not
specified.
params Object? Parameters that will be sent as part of the request.
Examples
FBInstant.graphApi.requestAsync('/me?fields=id,name')
.then(function(response) {
...
});
Access token will be embedded in the API call after users authenticate the game, so there is no
need to pass access token to this function.
FBInstant.graphApi.requestAsync('/me/notifications', 'POST', {
"href": "?gift_id=123",
"template": "You have people waiting to play with you, play now!"
}).then(result => console.log(result))
Relevant Documentations:
● https://developers.facebook.com/docs/games/build/legacy-web-games/gaming-
services/appnotifications
● https://developers.facebook.com/docs/graph-api/reference/user/notifications
Additional Guidelines:
● <PlayerID, ASID> mapping falls under the category of User Data as well, when
implementing data deletion callback, please also remove the mapping of the user who
triggers the data deletion request