Class GraphApi
Contains functions and properties related to Graph APIs.
Inherited Members
Namespace: Meta.InstantGames
Assembly: Unity.Meta.InstantGames.Sdk.dll
Syntax
public class GraphApi : JsObject
Constructors
GraphApi()
Construct an instance of GraphApi
Declaration
public GraphApi()
Methods
RequestAsync(string, string, string)
Performs a Graph API call and returns the result asynchronously.
Declaration
public WebTask<string> RequestAsync(string path, string method = null, string parameters = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The Graph API path for the request. |
| string | method | The HTTP method used for this request. |
| string | parameters | The parameters sent as part of the request, serialized as a JSON string. This string must represent a JSON object such as |
Returns
| Type | Description |
|---|---|
| WebTask<string> | A WebTask<T> that resolves with an object, serialized as a JSON string, which contains the result of the Graph API call. |