Select the Page whose Instagram account to connect
Saves the selected Page as an Instagram account connected via Facebook Login. The Page access token becomes the account's access token, so every Instagram call for it runs against the Facebook Graph host.
One Instagram account per profile: if the profile already has an Instagram account, this replaces it, and picking a different Instagram identity purges the previous account's conversations, external posts and stats.
API key authentication - use your Zernio API key as a Bearer token
In: header
Profile ID from your connection flow
The Facebook Page ID selected by the user, from GET /v1/connect/instagram/select-account
Long-lived Facebook user access token from the OAuth callback redirect
Optional custom redirect URL to return to after selection
uriResponse Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.connect.selectInstagramAccount({ body: { profileId: 'profile_abc123', pageId: 'page_abc123', tempToken: 'tok_abc123', },});console.log(data);{
"message": "Instagram (via Facebook) connected",
"account": {
"accountId": "64e1f0a9e2b5af0012ab34cd",
"platform": "instagram",
"username": "mybrand",
"displayName": "My Brand Page",
"profilePicture": "https://...",
"isActive": true,
"loginMethod": "facebook_login"
}
}{
"error": "Unauthorized"
}{
"error": "Add a payment method to connect more than 2 accounts.",
"code": "PAYMENT_REQUIRED",
"reason": "free_tier_exceeded",
"documentation_url": "https://docs.zernio.com/billing/payment-method-required",
"dashboard_url": "https://zernio.com/dashboard?tab=billing",
"details": {
"free_tier_account_limit": 2,
"current_account_count": 3,
"has_payment_method": false
}
}List Pages with a linked Instagram account GET
Completes the `loginMethod=facebook_login` Instagram flow, i.e. "Instagram API with Facebook Login". After the user authorizes on Facebook, extract `tempToken` from the redirect params (headless mode adds `step=select_account`) and pass it here to list the Facebook Pages they manage. Only Pages that have a linked Instagram professional account are returned, so an empty array means the user has no eligible Page. Use the X-Connect-Token header if connecting via API key. Not used by the default `instagram_login` flow, which creates the account without a selection step.
List LinkedIn orgs GET
Fetch full LinkedIn organization details (logos, vanity names, websites) for custom UI. No authentication required, just the tempToken from OAuth.