Questions tagged [instagram-graph-api]

The Instagram Graph API allows you to programmatically access Instagram Business Accounts so you can more easily manage media objects, view comments and metadata, and get insights and metrics, get hashtag data, mentions and more.

The Instagram Graph API is a standard REST API that supports basic CRUD operations. It works by checking a User's access token for any Facebook Page roles. If the User has a role on a Page, and that Page is connected to an Instagram Business Account, the User can grant your app permission to access the connected business account's data.

Documentation: Instagram Graph API | API Reference

561 questions
7
votes
0 answers

Get username and timestamp of instagram media id using intagram graph API

I want to find all recent media with a specific hashtag on Instagram. It's described here To get media with the specific hashtag I have used : GET graph.facebook.com/17873440459141021/recent_media?user_id=17841405309211844 The result is a list of…
Mateusz Mańka
  • 848
  • 1
  • 6
  • 18
7
votes
2 answers

Instagram API deprecation 2020

I'm building an app that has the user log in through instagram, it then reads their feed and uses that information for the app. Instagram has a page that says their API's will be deprecated in 2020 but some things will still work. It's not…
Ryan Langton
  • 6,294
  • 15
  • 53
  • 103
7
votes
0 answers

Facebook-Instagram api is missing metrics from /stories/insights: actions( sticker taps, swipe ups) & if the story is made up of multiple media

The instagram app allows you to see the following metrics for /story/insights: (notably interactions: swipe and sticker taps) see image Meanwhile the facebook instagram api only gives access to metrics: impressions, reach, taps_forward, taps_back,…
6
votes
1 answer

Instagram Post Insights - Organic v/s Paid Breakdown

According to Instagram (GRAPH) documentation, it's straight forward to get the insights of a post or media object (even story). Unlike the Facebook insights of a post, Instagram (GRAPH) does not provide paid/organic breakdown on a post level for…
6
votes
2 answers

Getting followers and following with Instagram APIs

I am studying to integrate Instagram into my app.But I have some confusion. I found 2 API document: https://www.instagram.com/developer/ and https://developers.facebook.com/docs/instagram-api/. They have differences about supporting API Endpoints as…
Ray Nguyen
  • 61
  • 1
  • 1
  • 3
6
votes
1 answer

Sending Instagram DM with API

I’m currently trying to find a way of sending Instagram DMs to specific users via an API (im building an iOS app and this is one of the functionality im trying to build). I know there are solutions that currently offer that (like Jarvee or…
Assem Chammah
  • 79
  • 1
  • 1
  • 7
5
votes
0 answers

Is it possible to invite a collaborator when publishing photos using the Instagram Graph API?

In October 2021 Instagram launched a new feature called Collabs which allows people to co-author Feed Posts and Reels. When posting (only in the app) you can 'Invite a collaborator'. This uses a similar interface to tag users, feels like it's…
alexmcfarlane
  • 1,016
  • 2
  • 13
  • 33
5
votes
2 answers

Unsupported request - method type: get

Our app started getting the following error message on a very basic get that was working perfectly fine until recently https://graph.instagram.com/v12.0/me?access_token= { "error": { "message": "Unsupported request - method type:…
Al Wld
  • 869
  • 7
  • 19
5
votes
4 answers

API Messenger Get conversations from plateform instagram

Using the API graph messenger for retrieving conversations on business account Instagram which has less than 1000 followers. Using Page token, it returns an empty data with platform=instagram like…
user3323940
  • 345
  • 1
  • 3
  • 13
5
votes
1 answer

Refresh long-lived token via Instagram graph api

I have long-lived token of user on back-end and successfully getting different information from graph-api endpoints. Now I am trying to refresh these valid, unexpired tokens on my side periodically and following Refresh Access Token documentation,…
5
votes
0 answers

Instagram Graph API 400 response error when checking container status

Hitting an error on a simple Instagram Graph API request. I am trying to check the status on a video container before posting it. If I skip this step, sleep for 30 seconds (to make sure the Facebook server has enough time to process the container)…
5
votes
2 answers

instagram basic display API get request not working?

I'm trying to do a basic get request based on the short-lived token recieved from a previous request to instagram. I know the short-lived-access-token is valid. The account i'm testing with is a test user and the app is in development mode at…
5
votes
1 answer

Instagram Grap Api returns empty data for recent media GET request

I'm trying to get all related media to my hashtag #Corona which is identified with ig-hashtag-id: 17843934877037015 so i'm sending my GET Request: GET graph.facebook.com/17843934877037015/recent_media?user_id=myUserID It's supposed to work like it's…
5
votes
1 answer

How to use new Instagram Graph or Basic Display API to fetch profile image of a normal user (as of 29 June 2020)

The former Instagram API (completely removed on 29 June 2020) allowed requesting the avatar URL of a normal user, but the 2 new APIs (Graph and Basic Display) no longer provide this. The Instagram Graph API does provide the profile_picture_url field…
5
votes
2 answers

Instagram Basic API: Is it possible to get the media_url from "CAROUSEL_ALBUM" in one query?

If you are reading this, you will read that you can add children to the fields query parameter. That means that if you have a media with the type "CAROUSEL_ALBUM" you will get the ids of the images as well. Example…
1
2
3
37 38