PostGate

Instagram access token in 2026: the 8-step version

There is no Instagram API key

You need an app ID and app secret to identify your app, plus an access token for the Instagram account. Only the token goes on ordinary API calls.

Three logins, three token types

Instagram Login gives an Instagram User token on graph.instagram.com. Facebook Login and Unified Login give Facebook-side tokens on graph.facebook.com.

Professional accounts only

All three work with Business or Creator accounts. Personal accounts lost API access when Meta retired the Basic Display API on December 4, 2024.

Shortcut for your own account

In the Meta App Dashboard, Instagram > API setup with Instagram business login can generate a token for an account you manage. It is already valid for 60 days.

OAuth for other people's accounts

1. Send the user to instagram.com/oauth/authorize
2. Swap the code at api.instagram.com within one hour
3. Exchange for a long-lived token at graph.instagram.com

One hour vs 60 days

A short-lived token lasts one hour. A long-lived one lasts 60 days and can be refreshed once it is at least 24 hours old.

Refresh before day 60

A token that goes 60 days without a refresh expires for good and the user has to log in again. A weekly refresh job avoids that.

Full code and error fixes

The guide has the complete OAuth code, the refresh call, the Facebook Login route and the errors you hit when requesting a token.

postgate.studio

Read the full guide