Lists comments on a post or on another comment (replies). filter is toplevel or stream; order is chronological or reverse_chronological. Supports paging.
Side effect
Risk
Needs approval
Idempotent
Scopes
NONE
low
no
yes
pages_read_engagement, pages_read_user_content
Input
Field
Type
Required
Description
page_id
string
yes
Page id. From facebook.list_managed_pages.
object_id
string
yes
Post or comment id. From facebook.get_page_posts or facebook.get_comments.
filter
string
no
toplevel = top comments only (default); stream = all comments incl. replies. One of: toplevel, stream.
order
string
no
Sort by time: chronological (oldest first) or reverse_chronological. One of: chronological, reverse_chronological.
fields
string
no
Comma-separated Graph fields to return, e.g. "id,message,created_time".
limit
integer
no
Max items per page (1-100). Min 1. Max 100.
after
string
no
Cursor for the next page, from paging.cursors.after of the previous call.
Deletes a comment from a post. Waits for human approval; once approved the comment is removed permanently. Consider update_comment with is_hidden instead.
Side effect
Risk
Needs approval
Idempotent
Scopes
WRITE
high
yes
yes
pages_manage_engagement, pages_read_user_content
Input
Field
Type
Required
Description
page_id
string
yes
Page id. From facebook.list_managed_pages.
comment_id
string
yes
Comment id. From facebook.get_comments.
Extra fields: ignored.
Output
Field
Type
Description
success
boolean
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.
Side effect
Risk
Needs approval
Idempotent
Scopes
WRITE
low
no
yes
pages_manage_engagement, pages_read_user_content
Input
Field
Type
Required
Description
page_id
string
yes
Page id. From facebook.list_managed_pages.
object_id
string
yes
Post or comment id. From facebook.get_page_posts or facebook.get_comments.
Extra fields: ignored.
Output
Field
Type
Description
success
boolean
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.
Side effect
Risk
Needs approval
Idempotent
Scopes
WRITE
low
no
yes
pages_manage_engagement, pages_read_user_content
Input
Field
Type
Required
Description
page_id
string
yes
Page id. From facebook.list_managed_pages.
object_id
string
yes
Post or comment id. From facebook.get_page_posts or facebook.get_comments.
Facebook — Comments
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_idfieldsExtra fields: ignored.
Output
idmessagecreated_timefromlike_countGet 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.fieldslimitafterExtra fields: ignored.
Output
datadata[].iddata[].messagedata[].created_timedata[].frompagingpaging.cursorsCreate 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_urlExtra fields: ignored.
Output
idApproval card: shown as message (page →
page_id, recipient →object_id, text →message, media →attachment_url).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_hiddenExtra fields: ignored.
Output
successApproval card: shown as message (page →
page_id, recipient →comment_id, text →message).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_idExtra fields: ignored.
Output
successLike 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_idExtra fields: ignored.
Output
successUnlike 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_idExtra fields: ignored.
Output
success