文档已更新。
中文(简体) 译文尚未完成。
英语更新时间:2022年4月18日
中文(简体) 更新时间:2021年6月21日

Tags

Represents a collection of IG Media objects in which an IG User has been tagged by another Instagram user.

Creating

This operation is not supported.

Reading

GET /{ig-user-id}/tags

Returns a list of IG Media objects in which an IG User has been tagged by another Instagram user.

Limitations

Private IG Media objects will not be returned.

Requirements

TypeDescription

Access Tokens

User

Features

Not applicable.

Permissions

instagram_basic
instagram_manage_comments
pages_read_engagement

pages_show_list


If the token is from a User whose Page role was granted via the Business Manager, one of the following permissions is also required: ads_management, business_management, or pages_read_engagement.

Tasks

The app user must be able to perform appropriate Tasks on the Page based on the Permissions requested by the app.

Request Syntax

GET https://graph.facebook.com/{ig-user-id}/tags
  ?fields={fields}
  &access_token={access-token}

Query String Parameters

Include the following query string parameters to augment the request.

KeyValue

access_token
Required
String

The app user's Instagram User Access Token.

fields
Comma-separated list

A comma-separated list of Fields and Edges you want included in the response. If omitted, default fields will be returned.

Fields

Use the fields query string parameter to specify fields you want included on any returned IG Media objects.

在 2021 年 9 月 7 日前,对于 10.0 及以下版本的调用:如果多媒体素材的所有者隐藏相关内容获得的点赞数量,则 Instagram 媒体上的 like_count 字段现将返回 0

在 2021 年 9 月 7 日前,对于 11.0 及以上版本的调用和所有版本:如果通过另一个端点或字段扩展间接查询 Instagram 媒体,则在多媒体素材拥有者已隐藏获赞数的情况下,API 响应将忽略 like_count 字段。若是直接查询 Instagram 媒体(只能由 Instagram 媒体所有者进行),即使已隐藏获赞数,系统仍会返回实际的获赞数。

Edges

Use the fields query string parameter to specify Edges you want included on any returned IG Media objects.

Response

A JSON-formatted object containing IG Media objects.

{
  "{field}":"{value}",
  ...
}

Pagination

This edge supports cursor-based pagination so 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.

Sample Request

GET graph.facebook.com/17841405822304914/tags
    ?fields=id,username
    &access_token=EAADd...

Sample Response

{
  "data": [
    {
      "id": "18038...",
      "username": "keldo..."
    },
    {
      "id": "17930...",
      "username": "ashla..."
    },
    {
      "id": "17931...",
      "username": "jaypo..."
    }
  ]
}

Updating

This operation is not supported.

Deleting

This operation is not supported.