Flutter: How to login to Instagram in flutter 플러터에서 graph api를 이용하여 인스타그램과 소통
플러터에서 인스타그램을 로그인 한후, 각종 포스트를 발행하는 방법을 구현해 볼려고 합니다.
2020년 이후로 인스타그램 API정책이 바뀐 후로 Basic Disply API 혹은 Instgram Graph API를 사용해야 하는데
BDI는 사용자의 기본정보만 볼 수 있는 것이고, IGA는 인스타그램 사용자가 자기의 포스트를 올리거나 조작할 때 사용하는 API입니다.
Graph API란 무엇일까요?
페이스북의 설명에 따르면 간단히 말해, 소셜 정보가 그래프 형태로 연결되어 있는 API로 이해하면 될 것 같습니다.
The Graph API is named after the idea of a "social graph" — a representation of the information on Facebook. It's composed of nodes, edges, and fields. Typically you use nodes to get data about a specific object, use edges to get collections of objects on a single object, and use fields to get data about a single object or each object in a collection. Throughout our documentation, we may refer to both a node and edge as an "endpoint". For example, "send a GET request to the User endpoint".
Instagram Graph API
Common Uses
- getting and managing published photos, videos, and stories
- getting basic data about other Instagram Business users and Creators
- moderating comments and their replies
- measuring media and profile interaction
- discovering hashtagged media
- discovering @mentions
- publishing photos and videos
Limitations
- The API cannot access Instagram consumer accounts (i.e., non-Business or non-Creator Instagram accounts). If you are building an app for consumer users, use the Instagram Basic Display API instead.
- Content Publishing is only available to Instagram Business Users.
- Reels are not supported.
- ordering results is not supported
- all endpoints support cursor-based pagination, but the User Insights edge is the only endpoint that supports time-based pagination