graph_batch
Run multiple Facebook Graph API requests in a single call to reduce round trips and combine Page post, comment, or media operations.
Instructions
Run several Graph API calls in one request Run a batch of Graph API requests in one call to save round trips. Each entry is {method, relative_url, name}, where relative_url is a Graph path such as '1001/posts'. GET entries are always allowed; POST and DELETE entries need the write permission. Graph API: POST batch. A batch entry without relative_url has no target, and Graph answers it as a request on the version root: 'Unsupported get request'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"requests": "<requests>"
},
"name": "graph_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| requests | Yes | ||
| access_token | No | Optional Facebook Page access token for this call only. Use it when the token you hold is not the one this server was configured with, or when the configured token has expired. Takes effect for this call and nothing else. Also accepted as token or page_token. |