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
0
votes
1 answer

I wanna get posts' usernames through their(posts') ids if I they don't belong to me. So, how can I do it?

I have two access_tokens: From Instagram Graph API:var fs_access_token, which I get after I log in with Facebook; From Instagram Basic Display: var inst_access_token; SO I have the collection of posts' ids, which I get through…
0
votes
1 answer

Instagram returning JSON in browser but not in PHP

I'm using https://www.instagram.com/username/?__a=1 to retrieve a user id. The url returns the proper JSON whenever I use it in a browser, however when I goto the url it in PHP with "get file contents" or "curl" it returns a full HTML page. The URL…
user3246980
0
votes
5 answers

"(# 100) You must provide an application access token or user access token who owns or is the developer of the application" (see Description)?

I make a request to find out the data about my user access token: fetch("https://graph.facebook.com/v8.0/debug_token?input_token=" + access_token).then(function (response) { response.text().then(function (textII) { alert(textII); …
0
votes
1 answer

instagram (new rules) follow/unfollow possible via API?

I have an instagram account. I want to achieve 2 things.. I want to be able to unfollow all users that I am following. I want to be able to follow users that are following a specific user. As i've read through, i couldn't find enough information…
0
votes
0 answers

Getting an Instagram feed in a mobile app without user interaction

We are building a mobile app on behalf of a corporation. In the app, there needs to be a feed of the Corporation's Instagram feed. The app consumes a server side API where we will implement getting the Instagram feed data, which needs to have the…
Vinyl Warmth
  • 2,226
  • 3
  • 25
  • 50
0
votes
1 answer

Refreshing Instagram long-lived access token works in browser (http) but not PHP (curl)

hope you can help. I'm trying to implement Instagram's Basic Display API but unfortunately I'm running into problems generating a long-lived access token or refreshing an existing long-lived token using PHP/cURL. It seems I'm far from the only one…
ynamite
  • 137
  • 1
  • 10
0
votes
2 answers

Instagram access token with invalid error

How can I display Instagram images of my account to my website homepage using access token and user id? I followed this guide and get Instagram access token and user id…
0
votes
0 answers

How do I get users who liked my Instagram post over a period of time? using Instagram graph api

I need the statistics of users who have liked/commented on my Instagram post in a certain period of time. After hours of searching, I came to the conclusion that I could use Instagram graph API to get a list of users who had commented on Instagram…
0
votes
1 answer

Instagram Basic Display API returns error for user with no birthday

We migrated the code from legacy api to basic display and after that we can't get any media for user with no age set in the profile. It always returns { "error_type": "OAuthException", "code": 400, "error_message": "Cannot access app due to…
0
votes
1 answer

How to display the number of images in instagram

Currently in my instagrams display 7 photos and this is "Data" => http://prntscr.com/td4enf Now I want to show only 4 photos in my instragarm. My old way https://api.instagram.com/v1/users/ '. esc_attr ($ id). '/ media / recent /? access_token ='.…
0
votes
2 answers

How to get instagram id from update 29/6/2020

I am building instagram in wordpress using the "elementor" plugin. In the old version I used the => https://api.instagram.com/v1/users/[my-id]/media/recent/?access_token=[my-token] Path to retrieve my instagram info data Through the "29/6/2020"…
0
votes
1 answer

Instagram Graph API - business_discovery(username) returns invalid user but account exists

I'm in a war with Instagram Graph API (as everybody nowdays) and trying to understand the documentation which doesn't explain a lot of things. In this battle, I've been able to get information from Instagram accounts thru…
Andrés Marotta
  • 345
  • 3
  • 21
0
votes
0 answers

Instagram Graph API - Get all media / skip the first ones

I used the following site to fetch the media from a specific Instagram user: https://developers.facebook.com/docs/instagram-api/guides/business-discovery It is working properly, but the problem is, that i want to get more media of this user. The API…
0
votes
1 answer

Can I get user id via Instagram Graph API?

I'm using Instagram Graph API and getting some data. Actually, this data is too few. I want to get an user ID for an unique user, but this API doesn't include an user ID. How do I get this value?
tadamw
  • 43
  • 1
  • 5
0
votes
2 answers

How can I add my Instagram feed to my personal website after legacy API is disabled?

I need to add only my personal Instagram posts to my personal website so I can use them as portfolio. I don't want to do authenication every request is made and I don't want to use legecy api. There is some answers here and there, some of them are…
user11072506