This operation is not supported.
GET /{ig-user-id}?fields=mentioned_media.media_id
Returns data on an IG Media in which an IG User has been @mentioned in a caption by another Instagram user.
Type | Description |
---|---|
If the app user was granted a role on the Page via the Business Manager, you will also need one of: | |
|
GET https://graph.facebook.com/v21.0
/{ig-user-id}
?fields=mentioned_media.media_id({media-id}){{fields}}
&access_token={access-token}
Parameter | Value |
---|---|
| The app user's User Access Token. |
| A comma-separated list of IG Media Fields you want returned. If omitted, default Fields will be returned. |
| The ID of the IG Media in which the IG User has been @mentioned in a caption. The ID is included in the Webhook notification payload. |
Field | Description |
---|---|
| The caption text. Captions that @mention an IG User will not include the |
| A list of IG Comments on the IG Media. If using Field Expansion to get the comment text, text that @mentions an IG User will not include the |
| Number of IG Comments on the IG Media. |
| ID of the IG Media. |
| Count of likes on the media. Excludes likes on album child media and likes on promoted posts created from the media. Includes replies on comments. |
| The IG Media's type: |
| URL of the published IG Media. |
| ID of the IG User who created the IG Media. Only returned if the app user created the IG Media object, otherwise the |
| Creation date of IG Media formatted in ISO 8601. |
| Username of the IG User who created the IG Media. |
curl -X GET \
'https://graph.facebook.com/v21.0
/17841405309211844?fields=mentioned_media.media_id(17873440459141021){caption,media_type}&access_token=IGQVJ...'
{ "mentioned_media": { "caption": "metricsaurus headquarters!", "media_type": "IMAGE", "id": "17873440459141021" }, "id": "17841405309211844" }
Note that in the sample above, the API has stripped out the leading @
symbol from the original caption (@metricsaurus headquarters!) because the app user did not create the caption.
If you are using field expansion to access an edge that supports cursor-based pagination, the response will include before
and after
cursors if the response contains multiple pages of data. Unlike standard cursor-based pagination, however, the response will not include previous
or next
fields, so you will have to use the before
and after
cursors to construct previous
and next
query strings manually in order to page through the returned data set.
This operation is not supported.
This operation is not supported.