Connect
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.
GET
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.
tempToken*stringLength
1 <= lengthSelectable Pages
application/json- response
pages*array<>Example Request
import { Configuration, ConnectionsApi } from "@onepostly/sdk";const connectionsApi = new ConnectionsApi( new Configuration({ apiKey: process.env.ONEPOSTLY_API_KEY }));const response = await connectionsApi.listFacebookPages({ tempToken: "temp_abc123",});console.log(response);Example Response
{ "pages": [ { "id": "123456789012345", "name": "Onepostly", "username": "onepostly", "category": "Business", "pictureUrl": "https://cdn.onepostly.com/avatars/onepostly.jpg" } ]}