เอกสารนี้นี้ได้รับการอัพเดตแล้ว
คำแปลเป็น ภาษาไทย ยังไม่เสร็จสมบูรณ์
ภาษาอังกฤษที่อัพเดต: 18 เม.ย. 2022
ภาษาไทย ที่อัพเดต: 15 มิ.ย. 2021

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.

การเรียกเวอร์ชั่น 10.0 และเวอร์ชั่นก่อนหน้าจนถึงวันที่ 7 กันยายน 2021: ช่อง like_count ในสื่อบน IG จะส่งคืนค่าเป็น 0 หากเจ้าของสื่อได้ซ่อนจำนวนการกดถูกใจของสื่อเอาไว้

การเรียกเวอร์ชั่น 11.0 ขึ้นไป และทุกเวอร์ชั่นในวันที่ 7 กันยายน 2021: หากสืบค้นสื่อบน IG ทางอ้อมผ่านตำแหน่งข้อมูลหรือการขยายเงื่อนไขช่องอื่น ระบบจะไม่ใส่ช่อง like_count ในการตอบกลับ API หากเจ้าของสื่อได้ซ่อนจำนวนการกดถูกใจของสื่อไว้ อย่างไรก็ตาม การสืบค้นสื่อบน IG โดยตรง (ซึ่งเจ้าของสื่อบน IG เท่านั้นที่ทำได้) จะส่งคืนจำนวนการกดถูกใจตามจริง แม้ว่าจะมีการซ่อนจำนวนการกดถูกใจก็ตาม

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.