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

Is there any way to get long-lived code/access tokens for Instagram Basic Display Api?

Access token is being expired after one hour as it is also mentioned in API documentation. It is not convenient for the users to authorize again after every hour. Please let me know if there is any other way to get long-lived tokens or refresh the…
5
votes
1 answer

OAuthException error_message: "Invalid scope: []" What am I doing wrong?

First of all... I want to integrated authentication in my App for anyone Instagram users by oAuth. After readed guide https://developers.facebook.com/docs/instagram-basic-display-api/getting-started, I added myself into Instagram Test User and then…
5
votes
1 answer

How to figure out an Instagram username from the user id

I am working on a program that needs to scrape information from the public Instagram API. My code is using the endpoint https://instagram.com/{username}/?__a=1 to get information about a user and in order to uniquely identify Instagram accounts…
hkonsti
  • 85
  • 1
  • 1
  • 6
5
votes
3 answers

A way to get and send Direct Messages in Instagram in NodeJS

Is it possible to get and send Instagram Direct Messages programmatically in NodeJS? I couldn't find any recent answers about the subject, so decided to ask here. Right now I know that there are: Instagram API FB Instagram API (Graph…
5
votes
3 answers

Instagram webhook not activating

My goal is to use the Facebook webhooks to get a notification whenever an IG user mentions my IG account. For that I have followed these steps: I have created a Facebook page and connected it with an Instagram business account. I have created a…
Alan
  • 161
  • 1
  • 2
  • 7
4
votes
2 answers

Post image to Instagram from a Javascript using Instagram API

Instagram Graph API: https://developers.facebook.com/docs/instagram-api/ Content Publishing: https://developers.facebook.com/docs/instagram-api/guides/content-publishing/ My code Javascript in Google App Script: function InstagramPost() { const…
4
votes
1 answer

iOS ask for Instagram Basic Api Fail, response status code: 403

I have checked the request body's data. These data run in Android or Postman are all successful, and will use new code to ask access_token every time. But the response status code is always 403 make me confused. However I just first time develop iOS…
4
votes
1 answer

Facebook (Instagram) Graph API not returning instagram_business_account

First of all, let me explain what I have today: I have a access token with the following permissions: email, public_profile, pages_show_list, pages_read_engagement, instagram_basic, instagram_manage_insights I have a valid access token The accounts…
4
votes
1 answer

Is refreshing long lived access token endpoint working in 2021?

Trying to refresh my long lived access token via this endpoint: https://developers.facebook.com/docs/instagram-basic-display-api/guides/long-lived-access-tokens#refresh-a-long-lived-token Keep getting the error: OAuth "Facebook Platform"…
4
votes
2 answers

How to use instagram API for Login

I have been trying to implement the OAuth flow for Instagram login with Instagram official APIs but seems like a lot has changed since June 2020 and I haven't had any luck to get any help for the Instagram Oauth login flow that can return a user…
4
votes
0 answers

Is it possible to use Instagram Basic Display API on localhost?

Since facebook requires a website url redirecting to my instagram app I wondered if there is a way to make this work. I tried a code from a youtube tutorial which seems to work on normal webpages perfectly. But i receive mutlitple errors when trying…
4
votes
1 answer

Is it possible to get the Instagram profile picture and other basic details?

I'm trying to get the details of the user using the access_token from the Instagram APIs, Instagram Basic Display API and Instagram Graph API. What I found is the details are bit messy and by going deep into it I'm not able to conclude the final…
Maulik Pandya
  • 2,200
  • 17
  • 26
4
votes
3 answers

Instagram Basic Display API Pagination

Is there anyway to use paging for the media results obtained using the Instagram Basic Display API? I've read the following documentations but they don't have any examples for using pagination:…
4
votes
2 answers

Instagram Client ID / new requirements of Instagram API

I have been using instafeed on a few projects over the past years, all without to many issues. With Instagrams new API requirements im running into some issues and any help would be just super - So far I have set up the basic API accsess…
4
votes
1 answer

Why is the Instagram Graph API webhook not working

I am not able to get webhook calls when another user post a comment (with mentions) on another/my media. Just for testing purposes I set up a ngrok server for my webhook endpoint, which always answers with a 200 and handles the verfication. Before…
1 2
3
37 38