Skip to content

Facebook — Bình luận ​

Xem bình luận (Get comment) — facebook.get_comment ​

Reads one comment by id: message, author, created time and like count. Pass fields to request more, e.g. attachment or parent.

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.
comment_idMã bình luậnstringcóComment id. From facebook.get_comments.
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ình luậnstring
messageNội dungstring
created_timeThời gian tạostring
fromNgười bình luậnobject
like_countSố lượt thíchinteger

Xem danh sách bình luận (Get comments) — facebook.get_comments ​

Lists comments on a post or on another comment (replies). filter is toplevel or stream; order is chronological or reverse_chronological. 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.
object_idMã bài viết hoặc bình luậnstringcóPost or comment id. From facebook.get_page_posts or facebook.get_comments.
filterBộ lọcstringkhôngtoplevel = top comments only (default); stream = all comments incl. replies. One of: toplevel, stream.
orderThứ tựstringkhôngSort by time: chronological (oldest first) or reverse_chronological. One of: chronological, reverse_chronological.
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[].created_timestring
data[].fromobject
pagingPhân trangobject
paging.cursorsobject

Đăng bình luận (Create comment) — facebook.create_comment ​

Comments (or replies) as the Page on a post or comment. Waits for human approval; once approved the comment is public. attachment_url adds an image.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEhighcókhôngpages_manage_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.
object_idMã bài viết hoặc bình luậnstringcóPost or comment id. From facebook.get_page_posts or facebook.get_comments.
messageNội dungstringcóComment text.
attachment_urlLiên kết ảnh đính kèmstringkhôngPublic https URL of an image to attach.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
idMã bình luậnstring

Thẻ duyệt: hiển thị dạng message (page → page_id, recipient → object_id, text → message, media → attachment_url).

Sửa hoặc ẩn bình luận (Update comment) — facebook.update_comment ​

Edits a comment's message or hides/unhides it with is_hidden. Hiding keeps the comment but removes it from public view.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEmediumkhôngkhôngpages_manage_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.
comment_idMã bình luậnstringcóComment id. From facebook.get_comments.
messageNội dung mớistringkhôngNew comment text. Leave empty to keep the text.
is_hiddenẨn bình luậnbooleankhôngtrue hides the comment from the public, false unhides it.

Field thêm: bỏ qua.

Output

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

Thẻ duyệt: hiển thị dạng message (page → page_id, recipient → comment_id, text → message).

Xóa bình luận (Delete comment) — facebook.delete_comment ​

Deletes a comment from a post. Waits for human approval; once approved the comment is removed permanently. Consider update_comment with is_hidden instead.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEhighcócópages_manage_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.
comment_idMã bình luậnstringcóComment id. From facebook.get_comments.

Field thêm: bỏ qua.

Output

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

Thích bài viết hoặc bình luận (Like post or comment) — facebook.like_post_or_comment ​

Likes a post or comment as the Page. Safe to repeat; liking twice has no extra effect.

Tác độngRủi roCần duyệtIdempotentScopes
WRITElowkhôngcópages_manage_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.
object_idMã bài viết hoặc bình luậnstringcóPost or comment id. From facebook.get_page_posts or facebook.get_comments.

Field thêm: bỏ qua.

Output

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

Bỏ thích bài viết hoặc bình luận (Unlike post or comment) — facebook.unlike_post_or_comment ​

Removes the Page's like from a post or comment. Safe to repeat; no effect if not liked.

Tác độngRủi roCần duyệtIdempotentScopes
WRITElowkhôngcópages_manage_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.
object_idMã bài viết hoặc bình luậnstringcóPost or comment id. From facebook.get_page_posts or facebook.get_comments.

Field thêm: bỏ qua.

Output

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