Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

232
Views
Troubles Fetching a Long-lived Access Token from the Instagram Basic Display API

I am trying to work with the Instagram Basic Display API and I am getting stuck at obtaining a long-lived access token. Hoping some of you folks can help me narrow down my issue. Ive been making my way through Meta for Developers ‘Get Started’, currently stuck on Step 5: Exchange the Code for a Token:

  • https://developers.facebook.com/docs/instagram-basic-display-api/getting-started

I’ve made it to the point where you can click to authenticate the Instagram test user, to which you get a redirected URI with an ‘authorization code’ appended to it. I then take that code and make a POST to https://api.instagram.com/oauth/access_token with the following params:

  • client_id={insta-app-id}

  • client_secret={insta-app-secret}

  • grant_type=authorization_code

  • redirect_uri={redirect-uri} code={authorization-code}

I then get this response: { "error_type": "OAuthException", "code": 400, "error_message": "Missing required field client_id" }

And if you find it helpful, this is more info about my approach:

  • the app is in not live and in ‘developer mode’,
  • I used the same Instagram App ID to ‘Authenticate the Test User’
  • not using the Facebook test app but instead tunneling my localhost through ngrok
  • The Valid OAuth Redirect URI ( Insta Basic Display – Client 0Auth Settings ), is exactly the same, as the Site URL ( Settings-Basic-Website ), this includes forward slashes. Any help would be super appreciated!
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Everything seems perfect. Try an attempt on postman or web browser.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!