Endpoint
Request headers
Request body
Example request
Example response
This endpoint publishes to Facebook Pages only. Publishing to personal Facebook profiles is not supported by the Facebook Graph API.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use the Dohoo Facebook posting API to publish photos, videos, and messages to connected Facebook Pages.
POST https://dohoo.ai/api/v2/facebook/publish
| Header | Required | Description |
|---|---|---|
X-API-Key | ✅ | Your Dohoo API key |
Content-Type | ✅ | Must be application/json |
| Field | Type | Required | Description |
|---|---|---|---|
connectionId | string | ✅ | The ID of the Facebook page connection to publish from |
fileId | string | ✅ | The ID of the uploaded file (photo or video) |
message | string | ❌ | The text message to accompany the post |
curl -X POST https://dohoo.ai/api/v2/facebook/publish \
-H "X-API-Key: dh_live_xxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"connectionId": "conn_facebook_001",
"fileId": "abc123",
"message": "Your post message here"
}'
{
"success": true,
"platform": "facebook",
"postId": "123456789012345_987654321098765",
"connectionId": "conn_facebook_001",
"status": "published",
"publishedAt": "2025-01-15T11:05:00Z",
"url": "https://www.facebook.com/permalink/123456789"
}
fileId here.403 Forbidden error on publish.