Connect
Select Facebook Page and Finish Connect
Connects the chosen Facebook Page and finishes the connect. Send the tempToken returned to your redirect URL.
POST
header
x-api-key<token>Workspace API key, sent in the x-api-key header. Keys start with op_ and are created in the dashboard.
application/json- body
tempToken*stringLength
1 <= lengthpageId*stringLength
1 <= lengthredirectUrl?stringConnected Page
application/json- response
connection*redirectUrl*stringFormat
uriExample Request
import { Configuration, ConnectionsApi } from "@onepostly/sdk";const connectionsApi = new ConnectionsApi( new Configuration({ apiKey: process.env.ONEPOSTLY_API_KEY }));const response = await connectionsApi.selectFacebookPage({ body: { "tempToken": "temp_abc123", "pageId": "123456789012345", "redirectUrl": "https://app.onepostly.com/connections/callback" },});console.log(response);Example Response
{ "connection": { "id": "a1b2c3d4-e5f6-4a7b-8c9d-e0f1a2b3c4d5", "platform": "instagram", "displayName": "Onepostly", "handle": "@onepostly", "avatarUrl": "https://cdn.onepostly.com/avatars/onepostly.jpg", "status": "active", "tokenExpiresAt": "2026-10-25T10:00:00.000Z", "canAutoRenew": true, "authHealth": "healthy", "profileName": "Business", "xSubscriptionType": "Premium", "createdAt": "2026-08-25T10:00:00.000Z", "updatedAt": "2026-08-25T10:00:00.000Z" }, "redirectUrl": "https://app.onepostly.com/connections/callback"}List Facebook Pages for Pending Connect
Lists the Facebook Pages the user can connect after authorizing Facebook. Send the tempToken returned to your redirect URL.
List Linked Instagram Accounts for Pending Connect
Lists the Instagram professional accounts linked to the user's Facebook Pages. Use it after connecting Instagram with loginMethod set to facebook_login, and send the tempToken returned to your redirect URL.