Skip to content
Fresh 2026

Comment

Reading

A Facebook comment

New Page Experience

This endpoint is supported for New Page Experience.

Feature Permissions

NameDescription
Page Public Content AccessThis feature permission may be required.

Example

HTTPPHP SDKJavaScript SDKAndroid SDKiOS SDK Graph API Explorer

GET /v21.0/{comment-id} HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
try {
  // Returns a `Facebook\FacebookResponse` object
  $response = $fb->get(
    '/{comment-id}',
    '{access-token}'
  );
} catch(Facebook\Exceptions\FacebookResponseException $e) {
  echo 'Graph returned an error: ' . $e->getMessage();
  exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
  echo 'Facebook SDK returned an error: ' . $e->getMessage();
  exit;
}
$graphNode = $response->getGraphNode();
/* handle the result */
/* make the API call */
FB.api(
    "/{comment-id}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{comment-id}",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]\
                               initWithGraphPath:@"/{comment-id}"\
                                      parameters:params\
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,\
                                      id result,\
                                      NSError *error) {\
    // Handle the result\
}];

If you want to learn how to use the Graph API, read our Using Graph API guide.

Parameters

This endpoint doesn't have any parameters.

Fields

FieldDescription
id<br>token with structure: Comment IDThe comment ID
admin_creator<br>UserFor a comment made by a page, the page admin who wrote it. A page access token is required to access this field.
application<br>ApplicationThe app this comment was published by
attachment<br>StoryAttachmentLink or photo attached to the comment
can_comment<br>boolWhether the viewer can reply to this comment
can_hide<br>boolWhether the viewer can hide this comment from everyone except the comment author and the author's friends. This can only be true for comments on Page posts
can_like<br>boolWhether the viewer can like this comment
can_remove<br>boolWhether the viewer can remove this comment
can_reply_privately<br>boolWhether the page viewer can send a private reply to this comment
comment_count<br>unsigned int32Number of replies to this comment
created_time<br>datetimeThe time this comment was made<br>Default
from<br>User|PageThe profile that made this comment<br>Default
is_hidden<br>boolWhether this comment is hidden from everyone except the comment author and the author's friends
is_private<br>boolWhether the comment is a private comment
like_count<br>unsigned int32Number of times this comment was liked
live_broadcast_timestamp<br>unsigned int32Time the comment was made on a live video
message<br>stringThe comment text<br>Default
message_tags<br>list<EntityAtTextRange>Profiles tagged in mentions in the message
objectThe object the comment is on
parent<br>CommentFor comment replies, the comment this is a reply to
permalink_url<br>uriThe permanent static URL to the comment
private_reply_conversationIf private reply was sent to this comment, gets private conversation between the page and author of the comment that was started by private reply
user_likes<br>boolWhether the viewer has liked this comment

Edges

EdgeDescription
comments<br>Edge<Comment>Comments made on this
likes<br>Edge<Profile>People who like this
reactions<br>Edge<Profile>People who reacted on this

Error Codes

ErrorDescription
100Invalid parameter
80001There have been too many calls to this Page account. Wait a bit and try again. For more info, please refer to https://developers.facebook.com/docs/graph-api/overview/rate-limiting.
200Permissions error
368The action attempted has been deemed abusive or is otherwise disallowed
190Invalid OAuth 2.0 Access Token
283That action requires the extended permission pages_read_engagement and/or pages_read_user_content and/or pages_manage_ads and/or pages_manage_metadata
2500Error parsing graph query
459The session is invalid because the user has been checkpointed
613Calls to this api have exceeded the rate limit.
210User not visible

Creating

You can make a POST request to comments edge from the following paths:

  • /{video_id}/comments

When posting to this edge, a Comment will be created.

Parameters

ParameterDescription
attachment_id<br>numeric string or integerID for a photo attachment to associate with this
attachment_share_url<br>URLLink to set the comment attachment to. Does not include the url in the message
attachment_url<br>URLLink to set the comment attachment to
is_offline<br>booleanWhether the comment was originally made while offline
message<br>UTF-8 stringSame as the text param<br>Supports Emoji
text<br>UTF-8 stringThe text of the comment that allows emoji<br>Supports Emoji

Return Type

This endpoint supports read-after-write and will read the node represented by id in the return type.

Struct {

id: token with structure: Comment ID,

}

Error Codes

ErrorDescription
100Invalid parameter
190Invalid OAuth 2.0 Access Token
368The action attempted has been deemed abusive or is otherwise disallowed
200Permissions error
1705There was an error during posting.
459The session is invalid because the user has been checkpointed

Updating

You can update a Comment by making a POST request to /{comment_id}.

Parameters

ParameterDescription
attachment_id<br>numeric string or integerID for a photo attachment to associate with this
attachment_share_url<br>URLLink to set the comment attachment to. Does not include the url in the message.
attachment_url<br>URLLink to set the comment attachment to.
is_hidden<br>booleanIs this comment hidden? Only applicable to Page comments
message<br>UTF-8 stringThe text in the new comment message<br>Supports Emoji

Return Type

This endpoint supports read-after-write and will read the node to which you POSTed.

Struct {

success: bool,

}

Error Codes

ErrorDescription
200Permissions error
368The action attempted has been deemed abusive or is otherwise disallowed
100Invalid parameter
80001There have been too many calls to this Page account. Wait a bit and try again. For more info, please refer to https://developers.facebook.com/docs/graph-api/overview/rate-limiting.
190Invalid OAuth 2.0 Access Token
210User not visible

Deleting

You can delete a Comment by making a DELETE request to /{comment_id}.

Parameters

This endpoint doesn't have any parameters.

Return Type

Struct {

success: bool,

}

Error Codes

ErrorDescription
200Permissions error
100Invalid parameter
368The action attempted has been deemed abusive or is otherwise disallowed
190Invalid OAuth 2.0 Access Token