set_facebook_credentials
Store and validate Facebook Graph API credentials before using other tools. Saves access token and optional app/page details, then verifies the token via /me.
Instructions
Store Facebook Graph API credentials and validate them immediately.
Saves the given values to ~/.facebook-automata-mcp/credentials.json (merged
with any previously stored fields) and validates the access_token by
calling GET /me. Use this once before using any other tool.
Args: access_token: A Facebook User, Page, or App access token (long-lived tokens recommended). Required. app_id: Your Facebook App ID (optional, enables token introspection via /debug_token). app_secret: Your Facebook App Secret (optional, used together with app_id for /debug_token introspection; never sent anywhere except graph.facebook.com). page_id: A default Facebook Page ID to use for tools where page_id is not explicitly supplied. api_version: Graph API version to target, e.g. "v21.0" (defaults to v21.0 if omitted).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | No | ||
| page_id | No | ||
| app_secret | No | ||
| api_version | No | ||
| access_token | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||