meta_exchange_token
Exchange a short-lived access token for a long-lived token valid for 60 days. Supports Instagram and Threads, applies the new token immediately without restart.
Instructions
Exchange a short-lived token for a long-lived token (valid ~60 days). Uses platform-specific endpoints: Instagram (graph.instagram.com) or Threads (graph.threads.net). Requires META_APP_SECRET. On success the new token is also applied in-memory to the running server, so subsequent tool calls use it immediately — no restart required (#65).
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": {
"short_lived_token": "<short_lived_token>",
"platform": "<platform>"
},
"name": "meta_exchange_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| platform | Yes | Target platform: 'instagram' or 'threads' | |
| short_lived_token | Yes | Short-lived access token to exchange |