Tài liệu này đã được cập nhật.
Bản dịch sang Tiếng Việt chưa hoàn tất.
Cập nhật bằng tiếng Anh: 12 tháng 6
Đã cập nhật bằng Tiếng Việt: 15 tháng 10, 2023

Changelog

This changelog refers to changes made for the Instagram Graph API.

Related Changelogs

June 11, 2024

Instagram Comment Webhooks

Applies to all versions

In addition to the ad_id and ad_title, the original_media_id will be returned in the media object of the comments field's value object when a person comments on a boosted Instagram post or Instagram ads post. For more information, refer to Set Up Webhooks for Instagram.

May 21, 2024

Instagram User Insights

Applies to v20.0+. Will apply to all versions on August 19, 2024.

The last_14_days, last_30_days, last_90_days and prev_month timeframes will no longer be supported for the reached_audience_demographics and engaged_audience_demographics metrics.

The following endpoints and metrics are affected:

September 12, 2023

Deprecation of Media and User Insights

Applies to v18.0+. Will apply to all versions on December 11, 2023.

Duplicative and legacy Instagram insight metrics are being deprecated. Please see documentation for the endpoints and Instagram Insights for more information on which metrics to use in their place.

The following endpoints and metrics are affected:

  • GET /{ig-user-id}/insights
    • AUDIENCE_GENDER_AGE
    • AUDIENCE_LOCALE
    • AUDIENCE_COUNTRY
    • AUDIENCE_CITY
  • GET /{ig-media-id}/insights
    • CAROUSEL_ALBUM_IMPRESSIONS
    • CAROUSEL_ALBUM_REACH
    • CAROUSEL_ALBUM_ENGAGEMENT
    • CAROUSEL_ALBUM_SAVED
    • CAROUSEL_ALBUM_VIDEO_VIEWS
    • TAPS_FORWARD
    • TAPS_BACK
    • EXITS
    • ENGAGEMENT

Note: total_interactions, which is listed as an alternative for some of the deprecated metrics, is currently only available using version 18.0 and does not work with older versions. When querying older versions before Dec 11, 2023, please use the engagement metric.total_interactions, which is listed as an alternative for some of the deprecated metrics, is currently only available using version 18.0 and does not work with older versions. When querying older versions before Dec 11, 2023, please use the engagement metric.

November 9, 2022

Instagram Webhooks

Applies to all versions.

The ad_id and ad_title will be returned in the media object of the comments field's value object when a person comments on a boosted Instagram post or Instagram ads post.

October 31st

Reels – Product Tags

Applies to all versions.

Instagram Product Tagging API for Reels is made available. You can tag up to 30 products when publishing a reel.

June 28, 2022

Reels

Applies to all versions.

Reels are now supported. To publish a video as a reel, set the media_type parameter to REELS when creating a single media post container. Refer to the POST /ig-user/media endpoint reference to learn which parameters can be used with reels as well as requirements for reels videos.

Note: Beginning November 9, 2023, the VIDEO value for media_type will no longer be supported. Use the REELS media type to publish a video to your feed.

June 27, 2022

Tài liệu về API Instagram cũ

Áp dụng cho tất cả phiên bản.

Tài liệu dành cho nhà phát triển API Instagram cũ đã bị gỡ và hiện chuyển hướng đến tài liệu dành cho nhà phát triển Nền tảng Instagram.

June 20, 2022

Gắn thẻ sản phẩm

Áp dụng cho tất cả các phiên bản.

Giờ đây, bạn có thể tạo và quản lý Thẻ sản phẩm mua sắm trên Instagram trên file phương tiện đã đăng của Tài khoản kinh doanh trên Instagram. Hãy tham khảo hướng dẫn Gắn thẻ sản phẩm để tìm hiểu cách thực hiện.

May 27, 2022

Product Variants

Applies to all versions.

For partners in the Product Tagging beta, all product variants that match a query's search criteria will now be returned when searching a catalog for products.

March 15, 2022

Bài viết quay vòng

Áp dụng cho tất cả phiên bản.

Giờ đây, bạn có thể sử dụng API Instagram để đăng bài viết chứa nhiều hình ảnh và video (bài viết quay vòng). Hãy tham khảo hướng dẫn Đăng nội dung để biết toàn bộ các bước đăng.

Nếu ứng dụng của bạn đã được phê duyệt các quyền cần có để đăng nội dung, ứng dụng đó không cần trải qua quy trình Xét duyệt ứng dụng một lần nữa mà vẫn tận dụng được chức năng này.

November 9, 2021

Video trực tiếp

Áp dụng cho tất cả các phiên bản.

Giờ đây, bạn có thể sử dụng API Instagram để lấy File phương tiện trên Instagram trong video trực tiếp mà người dùng ứng dụng đang phát, lấy bình luận cho những video đó và sử dụng API Nhắn tin trên Instagram để gửi tin trả lời riêng tư (tin nhắn trực tiếp) cho tác giả của bình luận. Dưới đây là những thay đổi đã được thực hiện để có thể hỗ trợ chức năng này:

  • một cạnh GET /ig-user/live_media mới có thể trả về File phương tiện trên Instagram trong video trực tiếp đang được người dùng ứng dụng phát tại thời điểm yêu cầu
  • trường media trong Bình luận trên Instagram hiện trả về đối tượng chứa cả ID (id) và vị trí đăng (media_product_type) của file phương tiện nhận được bình luận
  • một trường live_comments mới của Webhooks Instagram có thể gửi thông báo chứa bình luận trực tiếp cho video trực tiếp của người dùng ứng dụng khi video đó đang được phát

Vui lòng tham khảo tài liệu về tin trả lời riêng tư của API Nhắn tin trên Instagram để biết cách gửi tin trả lời riêng tư cho người dùng đã bình luận về File phương tiện trên Instagram trong video trực tiếp của người dùng ứng dụng.

October 20, 2021

Bình luận trên Instagram

Áp dụng cho tất cả các phiên bản.

2 trường mới đã được thêm vào Bình luận trên Instagram:

  • from – trả về đối tượng chứa IGSID (id) và tên người dùng (username) của người tạo bình luận.
  • parent_id – trả về ID của Bình luận chính trên Instagram nếu Bình luận khác trên Instagram nhận được bình luận này (tức là phản hồi cho một bình luận khác).

Webhooks Instagram

Áp dụng cho tất cả các phiên bản.

Trườngcomments của Webhooks Instagram hiện có các thuộc tính sau trong đối tượng trường value:

  • from.idIGSID của người dùng Instagram đã tạo bình luận.
  • from.username – Tên người dùng của người dùng Instagram đã tạo bình luận
  • media.id – ID của File phương tiện trên Instagram nhận được bình luận.
  • media.media_product_type – Giao diện (vị trí đăng) của File phương tiện trên Instagram nhận được bình luận.
  • parent_id – ID của Bình luận chính trên Instagram nếu Bình luận khác trên Instagram nhận được bình luận này (tức là phản hồi cho một bình luận khác).

October 5, 2021

Những thay đổi dưới đây áp dụng cho các video trên Instagram TV được tạo vào hoặc sau ngày 05/10/2021. Các video trên Instagram TV được tạo trước ngày này sẽ không thay đổi.

  • trườngmedia_product_type sẽ trả về FEED thay vì IGTV
  • trườngvideo_title sẽ không được trả về
  • trường commentsmentions của Webhooks Instagram hiện đã được hỗ trợ

Từ ngày 03/01/2022, những thay đổi ở trên sẽ áp dụng cho tất cả phiên bản API và tất cả video trên Instagram TV, bất kể video được tạo vào ngày nào. Tức là kể từ ngày 03/01/2022, những ứng dụng dùng các phiên bản API cũ hơn sẽ có thể truy vấn video trên Instagram TV (trước đây chỉ hỗ trợ quyền đọc trong phiên bản 10.0 trở lên).

Kể từ phiên bản 14.0, trường video_title sẽ không được hỗ trợ nữa và API sẽ báo lỗi nếu trường này được yêu cầu.

June 8, 2021

Like Counts

Applies to v11.0+. Will apply to all versions September 7, 2021.

If indirectly querying an IG Media through another endpoint or field expansion, the like_count field will be omitted from API responses if the media owner has hidden like counts on it. Directly querying the IG Media (which can only be done by the IG Media owner) will return the actual like count, however, even if like counts have been hidden.


Time-based Pagination

Applies to v11.0+.

Added since and until parameters to the GET /{ig-user-id}/media endpoint to support time-based pagination.

May 26, 2021

Nếu truy vấn gián tiếp một File phương tiện trên Instagram thông qua điểm cuối khác, trường like_count hiện sẽ trả về 0 nếu người dùng ứng dụng không sở hữu file phương tiện và chủ sở hữu file phương tiện đã ẩn số lượt thích của file phương tiện đó. Việc truy vấn trực tiếp File phương tiện trên Instagram (chỉ chủ sở hữu File phương tiện trên Instagram mới có thể thực hiện việc này) sẽ trả về số lượt thích thực tế, ngay cả khi chủ sở hữu đã ẩn số lượt thích của file phương tiện đó.

May 4, 2021

Đã thực hiện sự thay đổi nhỏ đối với cách chúng tôi tính số liệu online_followers cho Người dùng Instagram.

April 14, 2021

Các tương tác với File phương tiện trong tin trên Instagram do người dùng tại Nhật Bản thực hiện sẽ không được tính vào một vài số liệu replies nữa:

  • Đối với những tin do người dùng tại Nhật Bản tạo, số liệu replies hiện sẽ trả về giá trị 0.
  • Đối với những tin do người dùng bên ngoài Nhật Bản tạo, số liệu replies sẽ trả về số phản hồi, không tính những phản hồi của người dùng Nhật Bản.

April 12, 2021

Fixed a minor bug with reach metrics on story IG Media.

April 9, 2021

March 16, 2021

IGTV media is now supported in v10.0+. This applies to all endpoints except those used for content publishing and webhooks. To support this change, new media_product_type and video_title fields have been added to the IG Media node. IGTV media must have been shared to Instagram at the time of publish (Post a Preview or Share Preview to Feed enabled) in order to be accessible via the API.

Januray 26, 2021

The Content Publishing beta has ended and all developers can now publish media on Instagram Professional accounts. Refer to the Content Publishing guide for usage details.

December 2, 2020

In compliance with the European Union's ePrivacy Directive, messaging-related Story IG Media interactions performed by users in the European Economic Area (EEA) after December 1, 2020, will no longer be included in some metric calculations:

  • For Stories created by users in the EEA, the replies metric will now return a value of 0.
  • For Stories created by users outside the EEA, the replies metric will return the number of replies, but replies made my users in the EEA will not be included in its calculation.

This change applies to all versions.

November 10, 2020

  • IG User Insights — The follower_count values now align more closely with their corresponding values displayed in the Instagram app. In addition, follower_count now returns a maximum of 30 days of data instead of 2 years. This change applies to v9.0+ and will apply to all versions May 9, 2021.

May 5, 2020

December 3, 2019

  • Insights — To align API behavior with Instagram app behavior, insights on IG Users are now only available on IG Users that have 100 or more followers.

August 13, 2019

  • Business Discovery — The Business Discovery API can now be used to get data about other Instagram Creator accounts.

May 22, 2019

May 9, 2019

  • Webhooks — The story_insights field now requires the instagram_manage_insights permission instead of instagram_manage_comments.

October 31, 2018

  • Hashtag Search API — You can now search for media tagged with specific hashtags by using our new Hashtag Search API. #spooky!

October 23, 2018

  • /{ig-media-id}/comments edge — GET requests made using API version 3.1 or older will have results returned in chronological order. Requests made using version 3.2+ will have results returned in reverse chronological order.

June 7, 2018

  • /{ig-media-id} node — You can now use field expansion to get the permalink field on media objects.

May 1, 2018

  • Business Verification — In order to use the Instagram Graph API, all apps must undergo Business Verification, which is part of the App Review process and now required for all Instagram Graph API endpoints. Apps previously reviewed before May 1st, 2018, have to be reviewed again, and have until August 1st, 2018 to do so, or lose access to the API.

April 24, 2018

  • /{ig-comment-id} node:
    • Added a new username field.
    • For GET requests, the user field will not be included in responses unless the User making the request owns the Comment; instead, we will return username for all commenters. This also applies to queries on Comments made through other APIs, such as the Mentions API.
  • /{ig-media-id} node:
    • Added a new username field.
    • For GET requests, the owner field will not be included in responses unless the User making the request owns the media object; instead, we will return username for all commenters. This also applies to queries on media objects made through other APIs, such as the Mentions API.

April 23, 2018

  • Insights API — Insights will now include ad activity generated through the API, Facebook ads interfaces, and Instagram's Promote feature. This affects the following metrics:

    • impressions
    • reach

March 13, 2018

  • Content Publishing API — Beta partners can now use the /{ig-user-id}/media edge to tag locations and public Instagram users when publishing photos.

March 8, 2018

  • Public fields — The timestamp field on the /{ig-media-id} node is now a public field and can be returned via field expansion.

February 22, 2018

  • Public fields — The /{ig-user-id}, /{ig-comment-id}, and /{ig-media-id} nodes will now return all public fields when accessed through an edge via field expansion. Refer to each node's reference document to see which fields are public.

February 8, 2018

  • Content Publishing API — Beta partners can now include hashtags when publishing photos via the /{ig-user-id}/media edge. #crazywildebeest FTW!