Represents an Instagram album, photo, or video (uploaded video, live video, video created with the Instagram TV app, reel, or story).
This operation is not supported.
GET /{ig-media-id}
Gets fields and edges on IG media.
comments_count
counts comments on a photo, but not comments on ads that contain that photo.@
symbol unless the app user is also able to perform Admin-equivalent tasks on the app.permalink
, cannot be used on photos within albums (children).Type | Description |
---|---|
User. | |
If the app user was granted a role on the Page via the Business Manager, you also need one of the following: |
GET https://graph.facebook.com/{api-version}/{ig-media-id} ?fields={fields} &access_token={access-token}
Placeholder | Value |
---|---|
| API version. |
| Required. IG Media ID. |
Key | Placeholder | Value |
---|---|---|
|
| Required. App user's user access token. |
|
| Comma-separated list of fields you want returned. |
Public fields can be read via field expansion.
Field | Description |
---|---|
| Caption. Excludes album children. The |
| Count of comments on the media. Excludes comments on album child media and the media's caption. Includes replies on comments. |
| Media ID. |
| Instagram media ID. Used with Legacy Instagram API, now deprecated. Use |
| Indicates if comments are enabled or disabled. Excludes album children. |
| For Reels only. When Neither value determines whether the reel actually appears in the Reels tab because the reel may not meet eligibilty requirements or may not be selected by our algorithm. See reel specifications for eligibility critera. |
| Count of likes on the media, including replies on comments. Excludes likes on album child media and likes on promoted posts created from the media. If queried indirectly through another endpoint or field expansion:
|
| Surface where the media is published. Can be |
| Media type. Can be |
| The URL for the media. The |
| Instagram user ID who created the media. Only returned if the app user making the query also created the media; otherwise, |
| Permanent URL to the media. |
| Shortcode to the media. |
| Media thumbnail URL. Only available on |
| ISO 8601-formatted creation date in UTC (default is UTC ±00:00). |
| Username of user who created the media. |
| Deprecated. Omitted from response. |
Public edges can be returned through field expansion.
Edge | Description |
---|---|
| Represents a collection of IG Media objects on an album IG Media. |
Represents a collection of IG Comments on an IG Media object. | |
Represents social interaction metrics on an IG Media object. |
curl -X GET \
'https://graph.facebook.com/v17.0
/17895695668004550?fields=id,media_type,media_url,owner,timestamp&access_token=IGQVJ...'
{ "id": "17918920912340654", "media_type": "IMAGE", "media_url": "https://sconten...", "owner": { "id": "17841405309211844" }, "timestamp": "2019-09-26T22:36:43+0000" }
POST /{ig-media-id}
Enable or disable comments on an IG Media.
Live video IG Media not supported.
Type | Description |
---|---|
User. | |
If the app user was granted a role on the Page via the Business Manager, you also need one of the following: |
POST https://graph.facebook.com/{api-version}/{ig-media-id} ?comment_enabled={comment-enabled} &access_token={access-token}
Placeholder | Value |
---|---|
| API version. |
| Required. IG Media ID. |
Key | Placeholder | Value |
---|---|---|
|
| Required. App user's user access token. |
|
| Required. Set to |
curl -i -X POST \
"https://graph.facebook.com/v17.0
/17918920912340654?comment_enabled=true&access_token=EAAOc..."
{ "success": true }
This operation is not supported.