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.
API key authentication - use your Late API key as a Bearer token
In: header
Query Parameters
Profile ID from your connection flow
Temporary Facebook access token from the OAuth callback redirect
Response Body
application/json
application/json
application/json
curl -X GET "https://getlate.dev/api/v1/connect/facebook/select-page?profileId=string&tempToken=string"{
"pages": [
{
"id": "123456789",
"name": "My Brand Page",
"username": "mybrand",
"access_token": "EAAxxxxx...",
"category": "Brand",
"tasks": [
"MANAGE",
"CREATE_CONTENT"
]
}
]
}{
"error": "Unauthorized"
}{
"error": "string"
}Get pending OAuth data GET
Fetch pending OAuth data for headless mode using the pendingDataToken from the redirect URL. One-time use, expires after 10 minutes. No authentication required.
Select Facebook page POST
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.