List Pages with a linked Instagram account
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.
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
Profile ID from your connection flow
Long-lived Facebook user access token from the OAuth callback redirect
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.connect.listInstagramPages({ query: { profileId: 'profile_abc123', tempToken: 'tok_abc123', },});console.log(data);{
"pages": [
{
"id": "811889972008357",
"name": "My Brand Page",
"access_token": "EAAxxxxx...",
"instagram_business_account": {
"id": "17841400649984407",
"username": "mybrand",
"profile_picture_url": "https://..."
}
}
]
}{
"error": "Unauthorized"
}Update GBP location PUT
Switch which GBP location is active for a connected account.
Select the Page whose Instagram account to connect POST
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.