Select Facebook page
Complete the headless flow by saving the user's selected Facebook page. Pass the userProfile from the OAuth redirect and use X-Connect-Token if connecting via API key.
API key authentication - use your Zernio API key as a Bearer token
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
{ "message": "Facebook page connected successfully", "redirect_url": "https://yourdomain.com/integrations/callback?connected=facebook&profileId=507f1f77bcf86cd799439011&accountId=64e1f0a9e2b5af0012ab34cd&username=My+Brand+Page", "account": { "accountId": "64e1f0a9e2b5af0012ab34cd", "platform": "facebook", "username": "mybrand", "displayName": "My Brand Page", "profilePicture": "https://...", "isActive": true, "selectedPageName": "My Brand Page" }}List Facebook pages
Returns the list of Facebook Pages the user can manage after OAuth. Extract tempToken and userProfile from the OAuth redirect params and pass them here. Use the X-Connect-Token header if connecting via API key.
List Facebook pages
Returns all Facebook pages the connected account has access to, including the currently selected page.