Add Facebook Account
add_accountAdd a Facebook identity by saving its session cookies so the agent can act as that account. Requires c_user and xs, and can be set as active.
Instructions
Store a new Facebook identity's cookie set for agent use.
The cookies dict must contain at least c_user and xs (a logged-in
facebook.com session). After adding, all tools act as this identity
when set_as_active is True (default).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the identity | |
| cookies | Yes | Cookie dict with c_user + xs | |
| username | No | Optional vanity username | |
| account_id | Yes | The Facebook account/page id (numeric, from c_user) | |
| identity_type | No | user, page, or profile | user |
| set_as_active | No | Make this the active identity (default True) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||