connection.meta.sync-assets ​
Refresh Facebook Pages and linked Instagram Business accounts for a Meta connection via Graph /me/accounts using the stored User token
Refresh Meta Page/IG asset cache from Graph without OAuth reconnect.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-connection |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
connection_uuid | uuid | Yes | — | — |
default_page_ref | string | No | — | Optional Page id to pin as default after sync |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | — |
connection_uuid | uuid | No | — | — |
default_page_ref | string | No | — | — |
instagram_business_account_ref | string | No | — | — |
pages | json | No | — | — |
count | integer | No | — | — |
completed_at | string | No | — | — |
failure_reason | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
failed_at | string | No | — | — |
failed_at_state | string | No | — | — |
failed_layer | integer | No | — | — |
failed_step | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | Sync requested |
completed | No | Yes | Yes | — | Assets refreshed |
failed | No | Yes | No | — | Sync failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
pending | fail | failed | — |
Outcomes ​
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
completed | SUCCESS | Assets refreshed | — |
failed | FAILURE | Asset sync failed | — |
Business Errors ​
| Code | Message Template |
|---|---|
META_SYNC_ASSETS_FAILED |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "connection.meta.sync-assets",
"initial_data": {
"organization_uuid": "value",
"connection_uuid": "value"
}
}