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 động
Rủi ro
Cần duyệt
Idempotent
Scopes
NONE
low
không
có
pages_read_engagement, pages_read_user_content
Input
Field
Nhãn
Kiểu
Bắt buộc
Mô tả
page_id
Mã Page (ID)
string
có
Page id. From facebook.list_managed_pages.
comment_id
Mã bình luận
string
có
Comment id. From facebook.get_comments.
fields
Các trường cần lấy (fields)
string
không
Comma-separated Graph fields to return, e.g. "id,message,created_time".
Field thêm: bỏ qua.
Output
Field
Nhãn
Kiểu
Mô tả
id
Mã bình luận
string
message
Nội dung
string
created_time
Thời gian tạo
string
from
Người bình luận
object
like_count
Số lượt thích
integer
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 động
Rủi ro
Cần duyệt
Idempotent
Scopes
NONE
low
không
có
pages_read_engagement, pages_read_user_content
Input
Field
Nhãn
Kiểu
Bắt buộc
Mô tả
page_id
Mã Page (ID)
string
có
Page id. From facebook.list_managed_pages.
object_id
Mã bài viết hoặc bình luận
string
có
Post or comment id. From facebook.get_page_posts or facebook.get_comments.
filter
Bộ lọc
string
không
toplevel = top comments only (default); stream = all comments incl. replies. One of: toplevel, stream.
order
Thứ tự
string
không
Sort by time: chronological (oldest first) or reverse_chronological. One of: chronological, reverse_chronological.
fields
Các trường cần lấy (fields)
string
không
Comma-separated Graph fields to return, e.g. "id,message,created_time".
limit
Số kết quả tối đa
integer
không
Max items per page (1-100). Min 1. Max 100.
after
Con trỏ trang tiếp theo
string
không
Cursor for the next page, from paging.cursors.after of the previous call.
Field thêm: bỏ qua.
Output
Field
Nhãn
Kiểu
Mô tả
data
Danh sách kết quả
array of object
data[].id
string
data[].message
string
data[].created_time
string
data[].from
object
paging
Phân trang
object
paging.cursors
object
Đă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 động
Rủi ro
Cần duyệt
Idempotent
Scopes
WRITE
high
có
không
pages_manage_engagement, pages_read_user_content
Input
Field
Nhãn
Kiểu
Bắt buộc
Mô tả
page_id
Mã Page (ID)
string
có
Page id. From facebook.list_managed_pages.
object_id
Mã bài viết hoặc bình luận
string
có
Post or comment id. From facebook.get_page_posts or facebook.get_comments.
message
Nội dung
string
có
Comment text.
attachment_url
Liên kết ảnh đính kèm
string
không
Public https URL of an image to attach.
Field thêm: bỏ qua.
Output
Field
Nhãn
Kiểu
Mô tả
id
Mã bình luận
string
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 động
Rủi ro
Cần duyệt
Idempotent
Scopes
WRITE
medium
không
không
pages_manage_engagement, pages_read_user_content
Input
Field
Nhãn
Kiểu
Bắt buộc
Mô tả
page_id
Mã Page (ID)
string
có
Page id. From facebook.list_managed_pages.
comment_id
Mã bình luận
string
có
Comment id. From facebook.get_comments.
message
Nội dung mới
string
không
New comment text. Leave empty to keep the text.
is_hidden
Ẩn bình luận
boolean
không
true hides the comment from the public, false unhides it.
Field thêm: bỏ qua.
Output
Field
Nhãn
Kiểu
Mô tả
success
Thành công
boolean
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 động
Rủi ro
Cần duyệt
Idempotent
Scopes
WRITE
high
có
có
pages_manage_engagement, pages_read_user_content
Input
Field
Nhãn
Kiểu
Bắt buộc
Mô tả
page_id
Mã Page (ID)
string
có
Page id. From facebook.list_managed_pages.
comment_id
Mã bình luận
string
có
Comment id. From facebook.get_comments.
Field thêm: bỏ qua.
Output
Field
Nhãn
Kiểu
Mô tả
success
Thành công
boolean
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 động
Rủi ro
Cần duyệt
Idempotent
Scopes
WRITE
low
không
có
pages_manage_engagement, pages_read_user_content
Input
Field
Nhãn
Kiểu
Bắt buộc
Mô tả
page_id
Mã Page (ID)
string
có
Page id. From facebook.list_managed_pages.
object_id
Mã bài viết hoặc bình luận
string
có
Post or comment id. From facebook.get_page_posts or facebook.get_comments.
Field thêm: bỏ qua.
Output
Field
Nhãn
Kiểu
Mô tả
success
Thành công
boolean
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 động
Rủi ro
Cần duyệt
Idempotent
Scopes
WRITE
low
không
có
pages_manage_engagement, pages_read_user_content
Input
Field
Nhãn
Kiểu
Bắt buộc
Mô tả
page_id
Mã Page (ID)
string
có
Page id. From facebook.list_managed_pages.
object_id
Mã bài viết hoặc bình luận
string
có
Post or comment id. From facebook.get_page_posts or facebook.get_comments.
Facebook — Bình luận
Xem bình luận (Get comment) —
facebook.get_commentReads one comment by id: message, author, created time and like count. Pass
fieldsto request more, e.g. attachment or parent.pages_read_engagement,pages_read_user_contentInput
page_idcomment_idfieldsField thêm: bỏ qua.
Output
idmessagecreated_timefromlike_countXem danh sách bình luận (Get comments) —
facebook.get_commentsLists comments on a post or on another comment (replies).
filteris toplevel or stream;orderis chronological or reverse_chronological. Supports paging.pages_read_engagement,pages_read_user_contentInput
page_idobject_idfiltertoplevel,stream.orderchronological,reverse_chronological.fieldslimitafterField thêm: bỏ qua.
Output
datadata[].iddata[].messagedata[].created_timedata[].frompagingpaging.cursorsĐăng bình luận (Create comment) —
facebook.create_commentComments (or replies) as the Page on a post or comment. Waits for human approval; once approved the comment is public.
attachment_urladds an image.pages_manage_engagement,pages_read_user_contentInput
page_idobject_idmessageattachment_urlField thêm: bỏ qua.
Output
idThẻ 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_commentEdits a comment's message or hides/unhides it with is_hidden. Hiding keeps the comment but removes it from public view.
pages_manage_engagement,pages_read_user_contentInput
page_idcomment_idmessageis_hiddenField thêm: bỏ qua.
Output
successThẻ 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_commentDeletes a comment from a post. Waits for human approval; once approved the comment is removed permanently. Consider update_comment with is_hidden instead.
pages_manage_engagement,pages_read_user_contentInput
page_idcomment_idField thêm: bỏ qua.
Output
successThích bài viết hoặc bình luận (Like post or comment) —
facebook.like_post_or_commentLikes a post or comment as the Page. Safe to repeat; liking twice has no extra effect.
pages_manage_engagement,pages_read_user_contentInput
page_idobject_idField thêm: bỏ qua.
Output
successBỏ thích bài viết hoặc bình luận (Unlike post or comment) —
facebook.unlike_post_or_commentRemoves the Page's like from a post or comment. Safe to repeat; no effect if not liked.
pages_manage_engagement,pages_read_user_contentInput
page_idobject_idField thêm: bỏ qua.
Output
success