Set Channel
Useset-channel after OAuth when a platform needs a selected Page, channel, organization, or location.
Endpoint: POST /api/v1/social-account/set-channel
channelId from socialAccount.channels.
Platforms Requiring Set Channel
Direct Instagram OAuth (
instagramConnectionMethod: "INSTAGRAM") does not support set-channel.Meta Rule: Select All First
For Facebook and Instagram via Facebook, users should select all Pages and Instagram accounts they manage in the Meta OAuth screen. Then your UI should showsocialAccount.channels and call set-channel with the one Page or Instagram account for the current team.
This avoids Meta overwriting page grants when the same Meta user connects different bundle.social teams with different Pages.
Refresh Channels
Userefresh-channels when socialAccount.channels may be stale.
Endpoint: POST /api/v1/social-account/refresh-channels
Direct Instagram OAuth does not support
refresh-channels.Unset Channel
Useunset-channel when the user picked the wrong target and wants to choose another one without a full reconnect.
Endpoint: POST /api/v1/social-account/unset-channel
What Happens
- The selected Page, channel, or location is cleared from the social account.
- The OAuth connection stays intact.
- The account is removed from all draft and scheduled posts.
- Posts that only had this account become drafts.
social-account.updatedandteam.updatedwebhooks fire.
Switch Flow
- Call
POST /api/v1/social-account/unset-channel. - Show the current
socialAccount.channelslist. - Call
POST /api/v1/social-account/set-channelwith the new target ID.