# connect_account

> Page: https://docs.flung.dev/mcp/tools/connect-account. Index of every page: https://docs.flung.dev/llms.txt

Connect a new account. Starts connecting a new social account and returns a session with an authorizationUrl, the platform's own consent page. A person must open it and approve: give them the link, then call get_connect_session until it is not pending. The link expires in ten minutes. For an account already in list_accounts, use reconnect_account instead. Facebook connects one account per page.

## TL;DR

| Question | Answer |
|---|---|
| What does it do? | Starts connecting a new social account and returns a session with an authorizationUrl, the platform's own consent page. A person must open it and approve: give them the link, then call get_connect_session until it is not pending. The link expires in ten minutes. For an account already in list_accounts, use reconnect_account instead. Facebook connects one account per page. |
| Does it change anything? | Changes something. |
| Which endpoint does it call? | [`POST /v1/connect/{platform}`](https://docs.flung.dev/reference/api/post-v1-connect-platform.md) |
| Which server? | `https://mcp.flung.dev/mcp-oauth` (sign in) or `https://mcp.flung.dev/mcp` (API key). |

## Arguments

| Argument | Type | Required | Description |
|---|---|---|---|
| `platform` | `"x" \| "instagram" \| "facebook" \| "threads" \| "linkedin" \| "tiktok" \| "youtube" \| "pinterest" \| "bluesky" \| "mastodon" \| "discord" \| "farcaster"` | yes | The social platform. |
| `redirectUrl` | `string` | no | Where to send the person afterwards. Omit it and Flung shows its own "you can close this tab" page. at most 2048 characters. |

## Example call

```json
{
  "name": "connect_account",
  "arguments": {
    "platform": "linkedin"
  }
}
```

## Things a person might say

- "Connect my LinkedIn account to Flung."
- "Add our company Facebook page."

## Annotations

| Hint | Value |
|---|---|
| `readOnlyHint` | false |
| `destructiveHint` | false |
| `idempotentHint` | false |
| `openWorldHint` | true |

## See also

| Doc | Why |
|---|---|
| [MCP tools](https://docs.flung.dev/mcp/tools.md) | Every tool |
| [Connect an AI agent](https://docs.flung.dev/mcp.md) | Install the server in your client |
| [`POST /v1/connect/{platform}`](https://docs.flung.dev/reference/api/post-v1-connect-platform.md) | The same operation over HTTP |
