Skip to content

Facebook — Bài viết ​

Xem bài viết (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).

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcópages_read_engagement, pages_read_user_content

Input

FieldNhãnKiểuBắt buộcMô tả
page_idMã Page (ID)stringcóPage id. From facebook.list_managed_pages.
post_idMã bài viếtstringcóPost id, e.g. "123_456". From facebook.get_page_posts.
fieldsCác trường cần lấy (fields)stringkhôngComma-separated Graph fields to return, e.g. "id,message,created_time".

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
idMã bài viếtstring
messageNội dungstring
created_timeThời gian tạostring
permalink_urlLiên kết bài viếtstring

Xem insights của bài viết (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.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcóread_insights, pages_read_engagement

Input

FieldNhãnKiểuBắt buộcMô tả
page_idMã Page (ID)stringcóPage id. From facebook.list_managed_pages.
post_idMã bài viếtstringcóPost id, e.g. "123_456". From facebook.get_page_posts.
metricChỉ số (metric)stringcóComma-separated insight metrics, e.g. "post_impressions,post_clicks".

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataDanh sách kết quảarray of object
data[].idstring
data[].namestring
data[].periodstring
data[].valuesarray
pagingPhân trangobject
paging.cursorsobject

Xem lượt cảm xúc của bài viết (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.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcópages_read_engagement, pages_read_user_content

Input

FieldNhãnKiểuBắt buộcMô tả
page_idMã Page (ID)stringcóPage id. From facebook.list_managed_pages.
post_idMã bài viếtstringcóPost id, e.g. "123_456". From facebook.get_page_posts.
typeLoại cảm xúcstringkhôngOnly this reaction, e.g. LIKE, LOVE, WOW, HAHA, SAD, ANGRY or CARE. Empty = all.
limitSố kết quả tối đaintegerkhôngMax items per page (1-100). Min 1. Max 100.
afterCon trỏ trang tiếp theostringkhôngCursor for the next page, from paging.cursors.after of the previous call.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataDanh sách kết quảarray of object
data[].idstring
data[].namestring
data[].typestring
pagingPhân trangobject
paging.cursorsobject

Xem bài viết đã lên lịch (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.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcópages_read_engagement, pages_read_user_content

Input

FieldNhãnKiểuBắt buộcMô tả
page_idMã Page (ID)stringcóPage id. From facebook.list_managed_pages.
fieldsCác trường cần lấy (fields)stringkhôngComma-separated Graph fields to return, e.g. "id,message,created_time".
limitSố kết quả tối đaintegerkhôngMax items per page (1-100). Min 1. Max 100.
afterCon trỏ trang tiếp theostringkhôngCursor for the next page, from paging.cursors.after of the previous call.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataDanh sách kết quảarray of object
data[].idstring
data[].messagestring
data[].scheduled_publish_timeinteger
data[].created_timestring
pagingPhân trangobject
paging.cursorsobject

Đăng bài viết (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.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEhighcókhôngpages_manage_posts, pages_read_engagement

Input

FieldNhãnKiểuBắt buộcMô tả
page_idMã Page (ID)stringcóPage id. From facebook.list_managed_pages.
messageNội dungstringcóPost text.
linkLiên kết đính kèmstringkhôngURL to attach as a link preview, e.g. https://example.com.
publishedĐăng ngay (false = lưu nháp/lên lịch)booleankhôngPublish now (default true). Set false to save unpublished or to schedule.
scheduled_publish_timeGiờ đăng dự kiến (unix time)integerkhôngPublish time in unix seconds, 10 minutes to 30 days ahead; needs published=false.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
idMã bài viếtstring

Thẻ duyệt: hiển thị dạng post (page → page_id, message → message, link → link, scheduled_at → scheduled_publish_time).

Đăng bài viết kèm ảnh (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.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEhighcókhôngpages_manage_posts, pages_read_engagement

Input

FieldNhãnKiểuBắt buộcMô tả
page_idMã Page (ID)stringcóPage id. From facebook.list_managed_pages.
urlLiên kết ảnh công khaistringcóPublic https URL of the image.
captionChú thíchstringkhôngText shown with the photo.
publishedĐăng ngay (false = lưu nháp/lên lịch)booleankhôngPublish now (default true). Set false to save unpublished or to schedule.
scheduled_publish_timeGiờ đăng dự kiến (unix time)integerkhôngPublish time in unix seconds, 10 minutes to 30 days ahead; needs published=false.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
idMã ảnhstring
post_idMã bài viếtstring

Thẻ duyệt: hiển thị dạng post (page → page_id, message → caption, media → url, scheduled_at → scheduled_publish_time).

Sửa bài viết (Update post) — facebook.update_post ​

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

Tác độngRủi roCần duyệtIdempotentScopes
WRITEhighcókhôngpages_manage_posts, pages_read_engagement

Input

FieldNhãnKiểuBắt buộcMô tả
page_idMã Page (ID)stringcóPage id. From facebook.list_managed_pages.
post_idMã bài viếtstringcóPost id, e.g. "123_456". From facebook.get_page_posts.
messageNội dung mớistringcóNew post text; replaces the old text.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
successThành côngboolean

Thẻ duyệt: hiển thị dạng post (page → page_id, message → message, link → link, scheduled_at → scheduled_publish_time).

Xóa bài viết (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.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEhighcócópages_manage_posts, pages_read_engagement

Input

FieldNhãnKiểuBắt buộcMô tả
page_idMã Page (ID)stringcóPage id. From facebook.list_managed_pages.
post_idMã bài viếtstringcóPost id, e.g. "123_456". From facebook.get_page_posts.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
successThành côngboolean

Đăng ngay bài viết đã lên lịch (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.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEhighcókhôngpages_manage_posts, pages_read_engagement

Input

FieldNhãnKiểuBắt buộcMô tả
page_idMã Page (ID)stringcóPage id. From facebook.list_managed_pages.
post_idMã bài viếtstringcóPost id, e.g. "123_456". From facebook.get_page_posts.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
successThành côngboolean

Đổi giờ đăng bài viết (Reschedule post) — facebook.reschedule_post ​

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

Tác độngRủi roCần duyệtIdempotentScopes
WRITEmediumkhôngkhôngpages_manage_posts, pages_read_engagement

Input

FieldNhãnKiểuBắt buộcMô tả
page_idMã Page (ID)stringcóPage id. From facebook.list_managed_pages.
post_idMã bài viếtstringcóPost id, e.g. "123_456". From facebook.get_page_posts.
scheduled_publish_timeGiờ đăng dự kiến (unix time)integercóPublish time in unix seconds, 10 minutes to 30 days ahead; needs published=false.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
successThành côngboolean

Thẻ duyệt: hiển thị dạng post (page → page_id, message → message, link → link, scheduled_at → scheduled_publish_time).

Làm mới bản xem trước liên kết (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.

Tác độngRủi roCần duyệtIdempotentScopes
WRITElowkhôngkhông—

Input

FieldNhãnKiểuBắt buộcMô tả
idLiên kết cần làm mớistringcóFull URL to re-scrape, e.g. https://example.com/page.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
idLiên kếtstring
titleTiêu đềstring

Đăng bài nhiều ảnh (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.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEhighcókhôngpages_manage_posts, pages_read_engagement

Input

FieldNhãnKiểuBắt buộcMô tả
page_idMã Page (ID)stringcóPage id. From facebook.list_managed_pages.
photo_urlsDanh sách URL ảnh (https)array of stringcó1-10 public https image URLs, in display order.
messageNội dung bài viếtstringkhôngPost text.
publishedĐăng ngay (false = lưu nháp/lên lịch)booleankhôngPublish now (default true). Set false to save unpublished or to schedule.
scheduled_publish_timeGiờ đăng dự kiến (unix time)integerkhôngPublish time in unix seconds, 10 minutes to 30 days ahead; needs published=false.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
idMã bài viếtstring

Đăng video (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.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEhighcókhôngpages_manage_posts, pages_read_engagement

Input

FieldNhãnKiểuBắt buộcMô tả
page_idMã Page (ID)stringcóPage id. From facebook.list_managed_pages.
file_urlURL video (https)stringcóPublic https URL of the video file, e.g. an .mp4.
descriptionMô tảstringkhôngText shown with the video.
titleTiêu đềstringkhôngVideo title.
publishedĐăng ngay (false = lưu nháp/lên lịch)booleankhôngPublish now (default true). Set false to save unpublished or to schedule.
scheduled_publish_timeGiờ đăng dự kiến (unix time)integerkhôngPublish time in unix seconds, 10 minutes to 30 days ahead; needs published=false.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
idMã videostring

Tải nhiều ảnh cùng lúc (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.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEhighcókhôngpages_manage_posts, pages_read_engagement

Input

FieldNhãnKiểuBắt buộcMô tả
page_idMã Page (ID)stringcóPage id. From facebook.list_managed_pages.
photosDanh sách ảnh (url, caption)array of objectcóPhotos as objects, e.g. [{"url": "https://...", "caption": "..."}].
photos[].urlstringcó
photos[].captionstringkhông
album_idMã album (mặc định: Page)stringkhôngAlbum id to upload into. Empty = the Page's photos.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
resultsKết quả từng ảnharray of object
results[].idstring
results[].successboolean
results[].errorstring