@mentions

This guide explains how to publicly reply to a specific person, who has posted on your Page or commented on your Page post, in a comment or reply. A notification will be sent to the person who has been mentioned by the Page.

Common Uses

  • Reply to a specific person in a Page post that received multiple comments.
  • Batch reply to multiple people who commented on a Page post or replied to a Page post comment.

Limitations

  • In the Settings of your Page, you must have allowed Others Tagging this Page.
  • A Page can only mention a person if the person commented on a Page post or if the person created the Page post.
  • If your app is in Development mode, you must be an admin or a developer of the app and use Pages of which you are an admin. All Pages (both to make the API call, and to be used in a mention)

Before You Start

You will need:

Mention a Person

Reply to a Post

Send a POST request to the /{page-post-id} endpoint:

curl -i -X POST "https://www.graph.facebook.com/{page-post-id}
  ?message="Thanks for your post to our Page, @[{user-id}]"
  &access_token={page-access-token}"

On success, your app receives the following response:

{
  "id": "{comment_id}"
}

Reply to a Comment

Send a POST request to the /{page-post-id}/{comment-id} or the /{comment-id}/comments endpoint:

curl -i -X POST "https://www.graph.facebook.com/{page-post-id}
  ?message="Thanks for your comment on our Page post, @[{user-id}]"
  &access_token={page-access-token}"

On success, your app receives the following response:

{
  "id": "{comment_id}"
}