Facebook endpoints
Facebook endpoints in the Siar social media API: 15 operations that exist on Facebook only, with parameters, body fields, responses and curl examples.
Updated
These operations exist for Facebook only. The shared operations (posts, comments, analytics) are in the API reference; all network-specific areas are listed under network-specific operations.
Operations
| Operation | Method and path |
|---|---|
| Search Facebook Pages | GET /api/v1/misc/facebook/pages |
| List Facebook text background presets | GET /api/v1/misc/facebook/text-format-presets |
| Get Facebook token debug details | GET /api/v1/misc/facebook/token-debug |
| Start a new Facebook recommendations import | POST /api/v1/misc/facebook/recommendations/import |
| Get Facebook recommendations import status list | GET /api/v1/misc/facebook/recommendations/import |
| Get Facebook recommendations import by ID | GET /api/v1/misc/facebook/recommendations/import/{importId} |
| List imported Facebook recommendations | GET /api/v1/misc/facebook/recommendations |
| Get a single imported Facebook recommendation | GET /api/v1/misc/facebook/recommendations/{recommendationId} |
| Get recommendation thread comments | GET /api/v1/misc/facebook/recommendations/{recommendationId}/comments |
| Reply to a Facebook recommendation | PUT /api/v1/misc/facebook/recommendations/{recommendationId}/reply |
| Reply to a Facebook recommendation thread comment | PUT /api/v1/misc/facebook/recommendations/{recommendationId}/comments/{commentId}/reply |
| Edit an existing Facebook post | PATCH /api/v1/misc/facebook/post |
| Delete a Facebook post | DELETE /api/v1/misc/facebook/post |
| Edit a Facebook comment | PATCH /api/v1/misc/facebook/comment |
| Delete a Facebook comment | DELETE /api/v1/misc/facebook/comment |
/api/v1/misc/facebook/pages Search Facebook Pages
misc.facebook.searchPages · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
teamId required | query | string | |
q required | query | string | |
limit | query | integer | default 10 |
Example
curl -X GET "https://api.siaran.my/api/v1/misc/facebook/pages?teamId=TEAM_ID&q=string" \
-H "x-api-key: $SIAR_API_KEY" Response 200
1 top-level fields
-
itemsobject[] required4 fields
-
pageIdstring required -
namestring required -
linkstring nullable -
locationobject nullable7 fields
-
citystring nullable -
countrystring nullable -
latitudenumber nullable -
longitudenumber nullable -
statestring nullable -
streetstring nullable -
zipstring nullable
-
-
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/facebook/text-format-presets List Facebook text background presets
misc.facebook.getTextFormatPresets · requires x-api-key
Example
curl -X GET "https://api.siaran.my/api/v1/misc/facebook/text-format-presets" \
-H "x-api-key: $SIAR_API_KEY" Response 200
1 top-level fields
-
presetsobject[] required4 fields
-
idstring required -
labelstring required -
kindstring requiredOne of:colorgradientillustration -
colorstring nullable
-
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/facebook/token-debug Get Facebook token debug details
misc.facebook.getTokenDebug · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
teamId required | query | string |
Example
curl -X GET "https://api.siaran.my/api/v1/misc/facebook/token-debug?teamId=TEAM_ID" \
-H "x-api-key: $SIAR_API_KEY" Response 200
8 top-level fields
-
typestringOne of:USERPAGE -
applicationstring -
data_access_expires_atnumber -
is_validboolean required -
issued_atnumber -
scopesstring[] required -
granular_scopesobject[] required2 fields
-
scopestring required -
target_idsstring[]
-
-
errorobject3 fields
-
codenumber required -
messagestring required -
subcodenumber
-
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/facebook/recommendations/import Start a new Facebook recommendations import
misc.facebook.importRecommendations · requires x-api-key
Request body application/json
-
teamIdstring required -
countinteger required ≥ 1≤ 250
Example
curl -X POST "https://api.siaran.my/api/v1/misc/facebook/recommendations/import" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"teamId": "TEAM_ID",
"count": 1
}' Response 201
13 top-level fields
-
idstring required -
teamIdstring required -
socialAccountIdstring required -
requestedCountnumber required -
statusstring requiredOne of:PENDINGFETCHING_RECOMMENDATIONSCOMPLETEDFAILEDRATE_LIMITED -
itemsImportednumber required -
errorstring nullable -
rateLimitResetAtstring nullable date-time -
startedAtstring nullable date-time -
completedAtstring nullable date-time -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 409 Conflict · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/facebook/recommendations/import Get Facebook recommendations import status list
misc.facebook.getRecommendationImportStatus · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
teamId required | query | string |
Example
curl -X GET "https://api.siaran.my/api/v1/misc/facebook/recommendations/import?teamId=TEAM_ID" \
-H "x-api-key: $SIAR_API_KEY" Response 200
1 top-level fields
-
importsobject[] required13 fields
-
idstring required -
teamIdstring required -
socialAccountIdstring required -
requestedCountnumber required -
statusstring requiredOne of:PENDINGFETCHING_RECOMMENDATIONSCOMPLETEDFAILEDRATE_LIMITED -
itemsImportednumber required -
errorstring nullable -
rateLimitResetAtstring nullable date-time -
startedAtstring nullable date-time -
completedAtstring nullable date-time -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time
-
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/facebook/recommendations/import/{importId} Get Facebook recommendations import by ID
misc.facebook.getRecommendationImportById · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
importId required | path | string |
Example
curl -X GET "https://api.siaran.my/api/v1/misc/facebook/recommendations/import/IMPORTID" \
-H "x-api-key: $SIAR_API_KEY" Response 200
Same fields as the response of Start a new Facebook recommendations import.
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/facebook/recommendations List imported Facebook recommendations
misc.facebook.getRecommendations · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
teamId required | query | string | |
limit | query | number | default 50 |
offset | query | number | default 0 · nullable |
Example
curl -X GET "https://api.siaran.my/api/v1/misc/facebook/recommendations?teamId=TEAM_ID" \
-H "x-api-key: $SIAR_API_KEY" Response 200
4 top-level fields
-
recommendationsobject[] required21 fields
-
idstring required -
socialAccountIdstring required -
teamIdstring required -
externalRecommendationIdstring required -
openGraphStoryIdstring nullable -
reviewerDisplayNamestring nullable -
reviewerProfilePhotoUrlstring nullable -
recommendationValuestring nullableOne of:RECOMMENDNOT_RECOMMENDUNKNOWN -
ratingnumber nullable -
commentstring nullable -
hasMediaboolean required -
mediaSummarystring[] nullable -
ownerReplyCommentstring nullable -
ownerReplyCommentIdstring nullable -
ownerReplyUpdatedAtstring nullable date-time -
createTimestring nullable date-time -
updateTimestring nullable date-time -
importedAtstring nullable date-time -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time
-
-
totalnumber required -
limitnumber required -
remainingCapacitynumber required
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/facebook/recommendations/{recommendationId} Get a single imported Facebook recommendation
misc.facebook.getRecommendationById · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
recommendationId required | path | string | |
teamId required | query | string |
Example
curl -X GET "https://api.siaran.my/api/v1/misc/facebook/recommendations/RECOMMENDATIONID?teamId=TEAM_ID" \
-H "x-api-key: $SIAR_API_KEY" Response 200
21 top-level fields
-
idstring required -
socialAccountIdstring required -
teamIdstring required -
externalRecommendationIdstring required -
openGraphStoryIdstring nullable -
reviewerDisplayNamestring nullable -
reviewerProfilePhotoUrlstring nullable -
recommendationValuestring nullableOne of:RECOMMENDNOT_RECOMMENDUNKNOWN -
ratingnumber nullable -
commentstring nullable -
hasMediaboolean required -
mediaSummarystring[] nullable -
ownerReplyCommentstring nullable -
ownerReplyCommentIdstring nullable -
ownerReplyUpdatedAtstring nullable date-time -
createTimestring nullable date-time -
updateTimestring nullable date-time -
importedAtstring nullable date-time -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/facebook/recommendations/{recommendationId}/comments Get recommendation thread comments
misc.facebook.getRecommendationComments · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
recommendationId required | path | string | |
teamId required | query | string |
Example
curl -X GET "https://api.siaran.my/api/v1/misc/facebook/recommendations/RECOMMENDATIONID/comments?teamId=TEAM_ID" \
-H "x-api-key: $SIAR_API_KEY" Response 200
2 top-level fields
-
commentsobject[] required12 fields
-
idstring required -
recommendationIdstring required -
rootObjectIdstring required -
parentCommentIdstring nullable -
authorNamestring nullable -
authorExternalIdstring nullable -
authorAvatarUrlstring nullable -
textstring nullable -
likesCountnumber required -
repliesCountnumber required -
canReplyboolean nullable -
createdTimestring nullable date-time
-
-
totalnumber required
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/facebook/recommendations/{recommendationId}/reply Reply to a Facebook recommendation
misc.facebook.replyToRecommendation · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
recommendationId required | path | string |
Request body application/json
-
teamIdstring required -
commentstring required min length 1max length 4,096
Example
curl -X PUT "https://api.siaran.my/api/v1/misc/facebook/recommendations/RECOMMENDATIONID/reply" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"teamId": "TEAM_ID",
"comment": "string"
}' Response 200
Same fields as the response of Get a single imported Facebook recommendation.
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/facebook/recommendations/{recommendationId}/comments/{commentId}/reply Reply to a Facebook recommendation thread comment
misc.facebook.replyToRecommendationComment · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
recommendationId required | path | string | |
commentId required | path | string |
Request body application/json
-
teamIdstring required -
commentstring required min length 1max length 4,096
Example
curl -X PUT "https://api.siaran.my/api/v1/misc/facebook/recommendations/RECOMMENDATIONID/comments/COMMENTID/reply" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"teamId": "TEAM_ID",
"comment": "string"
}' Response 200
1 top-level fields
-
idstring required
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/facebook/post Edit an existing Facebook post
misc.facebook.editPost · requires x-api-key
Request body application/json
-
teamIdstring required -
postIdstring required -
descriptionstring
Example
curl -X PATCH "https://api.siaran.my/api/v1/misc/facebook/post" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"teamId": "TEAM_ID",
"postId": "POST_ID"
}' Response 200
2 top-level fields
-
successboolean required -
permalinkstring required
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/facebook/post Delete a Facebook post
misc.facebook.deletePost · requires x-api-key
Request body application/json
-
teamIdstring required -
postIdstring required
Example
curl -X DELETE "https://api.siaran.my/api/v1/misc/facebook/post" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"teamId": "TEAM_ID",
"postId": "POST_ID"
}' Response 200
1 top-level fields
-
successboolean required
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/facebook/comment Edit a Facebook comment
misc.facebook.editComment · requires x-api-key
Request body application/json
-
teamIdstring required -
commentIdstring required -
textstring required min length 1max length 8,000
Example
curl -X PATCH "https://api.siaran.my/api/v1/misc/facebook/comment" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"teamId": "TEAM_ID",
"commentId": "COMMENT_ID",
"text": "Hello from Siar"
}' Response 200
2 top-level fields
-
successboolean required -
permalinkstring nullable
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/facebook/comment Delete a Facebook comment
misc.facebook.deleteComment · requires x-api-key
Request body application/json
-
teamIdstring required -
commentIdstring required
Example
curl -X DELETE "https://api.siaran.my/api/v1/misc/facebook/comment" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"teamId": "TEAM_ID",
"commentId": "COMMENT_ID"
}' Response 200
Same fields as the response of Delete a Facebook post.
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error