ghl_social_get_oauth_accounts
Retrieves available social media pages or channels after OAuth authentication, enabling selection for connection. Supports filtering by name.
Instructions
Get Available Accounts (Step 2 of 3)
OAuth Connection Flow - Step 2: Get Available Accounts
After completing OAuth authentication (Step 1), use this endpoint to retrieve the list of available pages, channels, or locations that can be connected.
OAuth Flow Position
Start OAuth → User authenticates, returns
accountIdGet Accounts (this endpoint) → Lists available pages/channels to connect
Attach Account → Connect the selected account
What This Returns
The response varies by platform:
Platform | Returns |
List of Facebook Pages the user manages | |
**in | |
Endpoint: GET /social-media-posting/oauth/{locationId}/{platform}/accounts/{accountId} (Version header: v3; source: v3/social-planner-v3.json) |
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | Search term to filter accounts/pages by name. Useful when the user has many pages to choose from. | |
| platform | Yes | Social media platform | |
| accountId | Yes | The OAuth Account ID received from Step 1 (Start OAuth) via the window message event | |
| locationId | Yes | Account Location Id |