Get Facebook Pages
This endpoint is crucial for uploads, as it provides you with the necessary ID
to specify which Facebook Page you want to send your content to.
Get Facebook Pages
This endpoint allows you to get a list of all Facebook pages a user has access to through their connected accounts. This is a necessary step if you want to post to a specific page, as you will need its ID
.
-
Method:
GET
-
Endpoint:
/api/uploadposts/facebook/pages
-
Authentication:
- API Key in the
Authorization
header.Authorization: Api-Key <YOUR_API_KEY>
- API Key in the
-
Query Parameters:
Parameter | Type | Description | Required |
---|---|---|---|
profile | string | Optional. The profile's username . If provided, the API will return only the Facebook pages associated with the Facebook account linked to that profile. | No |
- Successful Response (
200 OK
)
The response will include a list of objects, where each object represents a Facebook page.
{
"success": true,
"pages": [
{
"id": "109876543210987",
"name": "My Business Page",
"picture": "https://url.to/profile/picture.jpg",
"account_id": "1234567890123456"
},
{
"id": "208765432109876",
"name": "Travel Blog",
"picture": "https://url.to/another/picture.jpg",
"account_id": "1234567890123456"
}
]
}
- Additional Notes:
- To post on a Facebook page, you must pass the page
id
in thefacebook_page_id
parameter of the upload endpoint (/api/upload
or/api/upload_photos
).
- To post on a Facebook page, you must pass the page