Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

233
Visualizações
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 Respostas
Responde à pergunta

0

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

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda