Skip to content

Facebook — Posts ​

Get post — facebook.get_post ​

Reads one Page post by id: message, created time, permalink and attachments. Pass fields to request counts such as reactions.summary(true).

Side effectRiskNeeds approvalIdempotentScopes
NONElownoyespages_read_engagement, pages_read_user_content

Input

FieldTypeRequiredDescription
page_idstringyesPage id. From facebook.list_managed_pages.
post_idstringyesPost id, e.g. "123_456". From facebook.get_page_posts.
fieldsstringnoComma-separated Graph fields to return, e.g. "id,message,created_time".

Extra fields: ignored.

Output

FieldTypeDescription
idstring
messagestring
created_timestring
permalink_urlstring

Get post insights — facebook.get_post_insights ​

Reads insights metrics for one post (e.g. post_impressions, post_clicks). metric is required and comma separated.

Side effectRiskNeeds approvalIdempotentScopes
NONElownoyesread_insights, pages_read_engagement

Input

FieldTypeRequiredDescription
page_idstringyesPage id. From facebook.list_managed_pages.
post_idstringyesPost id, e.g. "123_456". From facebook.get_page_posts.
metricstringyesComma-separated insight metrics, e.g. "post_impressions,post_clicks".

Extra fields: ignored.

Output

FieldTypeDescription
dataarray of object
data[].idstring
data[].namestring
data[].periodstring
data[].valuesarray
pagingobject
paging.cursorsobject

Get post reactions — facebook.get_post_reactions ​

Lists who reacted to a post and with which reaction. type filters by LIKE, LOVE, WOW, HAHA, SAD or ANGRY. Supports paging.

Side effectRiskNeeds approvalIdempotentScopes
NONElownoyespages_read_engagement, pages_read_user_content

Input

FieldTypeRequiredDescription
page_idstringyesPage id. From facebook.list_managed_pages.
post_idstringyesPost id, e.g. "123_456". From facebook.get_page_posts.
typestringnoOnly this reaction, e.g. LIKE, LOVE, WOW, HAHA, SAD, ANGRY or CARE. Empty = all.
limitintegernoMax items per page (1-100). Min 1. Max 100.
afterstringnoCursor for the next page, from paging.cursors.after of the previous call.

Extra fields: ignored.

Output

FieldTypeDescription
dataarray of object
data[].idstring
data[].namestring
data[].typestring
pagingobject
paging.cursorsobject

Get scheduled posts — facebook.get_scheduled_posts ​

Lists unpublished posts scheduled on a Page, with their scheduled publish time. Use before rescheduling or cancelling a post.

Side effectRiskNeeds approvalIdempotentScopes
NONElownoyespages_read_engagement, pages_read_user_content

Input

FieldTypeRequiredDescription
page_idstringyesPage id. From facebook.list_managed_pages.
fieldsstringnoComma-separated Graph fields to return, e.g. "id,message,created_time".
limitintegernoMax items per page (1-100). Min 1. Max 100.
afterstringnoCursor for the next page, from paging.cursors.after of the previous call.

Extra fields: ignored.

Output

FieldTypeDescription
dataarray of object
data[].idstring
data[].messagestring
data[].scheduled_publish_timeinteger
data[].created_timestring
pagingobject
paging.cursorsobject

Create post — facebook.create_post ​

Publishes a text or link post to a Page feed. Waits for human approval; once approved the post goes public. Set published=false with scheduled_publish_time (unix seconds) to schedule it instead.

Side effectRiskNeeds approvalIdempotentScopes
WRITEhighyesnopages_manage_posts, pages_read_engagement

Input

FieldTypeRequiredDescription
page_idstringyesPage id. From facebook.list_managed_pages.
messagestringyesPost text.
linkstringnoURL to attach as a link preview, e.g. https://example.com.
publishedbooleannoPublish now (default true). Set false to save unpublished or to schedule.
scheduled_publish_timeintegernoPublish time in unix seconds, 10 minutes to 30 days ahead; needs published=false.

Extra fields: ignored.

Output

FieldTypeDescription
idstring

Approval card: shown as post (page → page_id, message → message, link → link, scheduled_at → scheduled_publish_time).

Create photo post — facebook.create_photo_post ​

Publishes one photo from a public image url to a Page, with an optional caption. Waits for human approval; once approved the photo goes public.

Side effectRiskNeeds approvalIdempotentScopes
WRITEhighyesnopages_manage_posts, pages_read_engagement

Input

FieldTypeRequiredDescription
page_idstringyesPage id. From facebook.list_managed_pages.
urlstringyesPublic https URL of the image.
captionstringnoText shown with the photo.
publishedbooleannoPublish now (default true). Set false to save unpublished or to schedule.
scheduled_publish_timeintegernoPublish time in unix seconds, 10 minutes to 30 days ahead; needs published=false.

Extra fields: ignored.

Output

FieldTypeDescription
idstring
post_idstring

Approval card: shown as post (page → page_id, message → caption, media → url, scheduled_at → scheduled_publish_time).

Update post — facebook.update_post ​

Replaces the message of an existing Page post. Waits for human approval; once approved the edited text is public.

Side effectRiskNeeds approvalIdempotentScopes
WRITEhighyesnopages_manage_posts, pages_read_engagement

Input

FieldTypeRequiredDescription
page_idstringyesPage id. From facebook.list_managed_pages.
post_idstringyesPost id, e.g. "123_456". From facebook.get_page_posts.
messagestringyesNew post text; replaces the old text.

Extra fields: ignored.

Output

FieldTypeDescription
successboolean

Approval card: shown as post (page → page_id, message → message, link → link, scheduled_at → scheduled_publish_time).

Delete post — facebook.delete_post ​

Deletes a Page post. Waits for human approval; once approved the post and its comments are removed and cannot be restored.

Side effectRiskNeeds approvalIdempotentScopes
WRITEhighyesyespages_manage_posts, pages_read_engagement

Input

FieldTypeRequiredDescription
page_idstringyesPage id. From facebook.list_managed_pages.
post_idstringyesPost id, e.g. "123_456". From facebook.get_page_posts.

Extra fields: ignored.

Output

FieldTypeDescription
successboolean

Publish scheduled post now — facebook.publish_scheduled_post ​

Publishes an unpublished or scheduled post immediately (is_published=true). Waits for human approval; once approved the post goes public.

Side effectRiskNeeds approvalIdempotentScopes
WRITEhighyesnopages_manage_posts, pages_read_engagement

Input

FieldTypeRequiredDescription
page_idstringyesPage id. From facebook.list_managed_pages.
post_idstringyesPost id, e.g. "123_456". From facebook.get_page_posts.

Extra fields: ignored.

Output

FieldTypeDescription
successboolean

Reschedule post — facebook.reschedule_post ​

Changes the scheduled publish time (unix seconds) of a still-unpublished post. Does not publish anything now.

Side effectRiskNeeds approvalIdempotentScopes
WRITEmediumnonopages_manage_posts, pages_read_engagement

Input

FieldTypeRequiredDescription
page_idstringyesPage id. From facebook.list_managed_pages.
post_idstringyesPost id, e.g. "123_456". From facebook.get_page_posts.
scheduled_publish_timeintegeryesPublish time in unix seconds, 10 minutes to 30 days ahead; needs published=false.

Extra fields: ignored.

Output

FieldTypeDescription
successboolean

Approval card: shown as post (page → page_id, message → message, link → link, scheduled_at → scheduled_publish_time).

Refresh URL preview — facebook.refresh_url_scrape ​

Asks Facebook to re-scrape a URL so link previews pick up new title and image. Uses the connected user token; no Page is needed.

Side effectRiskNeeds approvalIdempotentScopes
WRITElownono—

Input

FieldTypeRequiredDescription
idstringyesFull URL to re-scrape, e.g. https://example.com/page.

Extra fields: ignored.

Output

FieldTypeDescription
idstring
titlestring

Create multi-photo post — facebook.create_multi_photo_post ​

Publishes one Page post with 1-10 photos (https URLs): uploads each photo unpublished, then attaches them to a feed post. Waits for human approval.

Side effectRiskNeeds approvalIdempotentScopes
WRITEhighyesnopages_manage_posts, pages_read_engagement

Input

FieldTypeRequiredDescription
page_idstringyesPage id. From facebook.list_managed_pages.
photo_urlsarray of stringyes1-10 public https image URLs, in display order.
messagestringnoPost text.
publishedbooleannoPublish now (default true). Set false to save unpublished or to schedule.
scheduled_publish_timeintegernoPublish time in unix seconds, 10 minutes to 30 days ahead; needs published=false.

Extra fields: ignored.

Output

FieldTypeDescription
idstring

Create video post — facebook.create_video_post ​

Publishes a video to a Page from a public https file URL, via the Graph video host. Waits for human approval.

Side effectRiskNeeds approvalIdempotentScopes
WRITEhighyesnopages_manage_posts, pages_read_engagement

Input

FieldTypeRequiredDescription
page_idstringyesPage id. From facebook.list_managed_pages.
file_urlstringyesPublic https URL of the video file, e.g. an .mp4.
descriptionstringnoText shown with the video.
titlestringnoVideo title.
publishedbooleannoPublish now (default true). Set false to save unpublished or to schedule.
scheduled_publish_timeintegernoPublish time in unix seconds, 10 minutes to 30 days ahead; needs published=false.

Extra fields: ignored.

Output

FieldTypeDescription
idstring

Upload photos in batch — facebook.upload_photos_batch ​

Uploads up to 50 photos (https URLs, optional caption) to a Page or album in one Graph batch call. Per-photo failures are reported in results, not raised. Waits for human approval.

Side effectRiskNeeds approvalIdempotentScopes
WRITEhighyesnopages_manage_posts, pages_read_engagement

Input

FieldTypeRequiredDescription
page_idstringyesPage id. From facebook.list_managed_pages.
photosarray of objectyesPhotos as objects, e.g. [{"url": "https://...", "caption": "..."}].
photos[].urlstringyes
photos[].captionstringno
album_idstringnoAlbum id to upload into. Empty = the Page's photos.

Extra fields: ignored.

Output

FieldTypeDescription
resultsarray of object
results[].idstring
results[].successboolean
results[].errorstring