Instagram long-lived token: 60 days and how to refresh it

How the Instagram Login token works: a 1-hour code, a 1-hour short-lived token, a 60-day long-lived token and refreshing before it expires.

With the Instagram API with Instagram Login, the token your app uses day to day lasts 60 days and must be refreshed before it expires. There are three steps: the authorization code lasts 1 hour, the short-lived token also lasts 1 hour and is exchanged on the server for the long-lived token, which lasts 60 days. A refresh is only accepted for a token that is at least 24 hours old and not yet expired, and the refreshed token gets another 60 days. If that time passes without a refresh, the token expires for good and the customer must log in again.

What are the steps to a 60-day token?

The flow starts with Business Login for Instagram. The customer authorizes the app in a Meta window, at instagram.com/oauth/authorize, and returns to your redirect_uri with a code. You exchange that code at api.instagram.com/oauth/access_token for a short-lived token, then exchange that for a long-lived one. The table shows how long each piece lasts.

PieceLifetimeDocumented rule
Authorization code1 hourCan only be used once
Short-lived token1 hourExchanged for a long-lived token
Long-lived token60 daysExchange only in server-side code
Refreshed token60 days from the refresh dateRequires a token at least 24 hours old and still valid
Token generated in the App Dashboard60 daysAlready long-lived

The redirect_uri has a requirement that trips many integrations on the first test: it must exactly match one of the valid OAuth URIs listed in the App Dashboard. If the customer declines, the response carries error=access_denied and error_reason=user_denied, and your app should show a screen explaining what happened.

How do you exchange the short-lived token for a 60-day one?

With a call that uses grant_type=ig_exchange_token and your app secret. The access_token reference says this call should only be made in server-side code, because it carries the secret. The response includes the new token and an expires_in field with the seconds until expiry; in Meta’s example, 5184000 seconds, which is 60 days.

# 1. Exchange the short-lived token (1 hour) for a long-lived one (60 days) # Server side only: the call carries the app secret GET https://graph.instagram.com/access_token ?grant_type=ig_exchange_token &client_secret=<APP_SECRET> &access_token=<SHORT_LIVED_TOKEN> # 2. Refresh the long-lived token (at least 24 hours old and still valid) GET https://graph.instagram.com/refresh_access_token ?grant_type=ig_refresh_token &access_token=<LONG_LIVED_TOKEN> # The exchange response carries expires_in, in seconds until expiry # (in Meta's example: 5184000, or 60 days) # A refreshed token is valid for 60 days from the refresh date

Store the date the token was issued and the expiry computed from expires_in next to the token. Those two values drive any refresh routine. Also remember that, with Instagram Login, the secret is the Instagram app secret shown in the API setup with Instagram login section, not the Meta app’s.

When and how should you refresh?

Between the first 24 hours and expiry. The refresh_access_token reference says you can refresh a long-lived token that is at least 24 hours old but has not expired, and that refreshed tokens are valid for 60 days from the date they are refreshed. The call uses grant_type=ig_refresh_token and requires the instagram_business_basic permission.

The documentation does not say how far ahead to refresh; that is your call. A few practical rules that follow from the ones above:

  • Do not refresh on the day you got the token: before 24 hours, the refresh is not accepted.
  • Run a daily job that refreshes tokens expiring in the next few days, with room for failures and retries.
  • After a refresh, replace the stored token and recompute the expiry: 60 days from the refresh.
  • If a refresh fails, alert before expiry: after it, there is nothing left to refresh.
  • Do not refresh on every call: there is no gain, and you multiply points of failure.

What happens when the token expires?

It does not come back. The Business Login for Instagram page says tokens that have not been refreshed in 60 days expire and can no longer be refreshed. The only way out is for the customer to go through login again and get a new token. For an integration with many customers, that means having a reconnection flow ready: a link the customer opens, authorizes and returns from connected.

Two parameters and one date help with that flow. Since June 14, 2025, force_reauth=true forces the customer to sign in with the professional account’s credentials even if another session is open in the browser, which keeps them from connecting the wrong account. And the old scope values, such as business_basic and business_manage_messages, were deprecated on January 27, 2025: an old login link that still requests them must switch to instagram_business_basic and instagram_business_manage_messages.

Does the 60-day rule apply to Unified Login?

Not necessarily. Everything above is the Instagram Login rule. For Unified Login, the authentication page says whether the access token expires depends on your configuration in the App Dashboard. The same documentation says the Unified Login token belongs to the customer’s business portfolio and keeps working if the person who connected it leaves the business.

If you are still choosing a setup, the comparison is in the article on Instagram Login, Facebook Login and Unified Login. If your integration already uses Instagram Login, a refresh routine is mandatory. The connected account must be professional, as the article on professional account requirements explains, and a token only gives access to data from the user who granted the permission.

How CRPRO Hub will handle this (coming soon): the Instagram channel will exchange the code for the 60-day token, and a scheduled job will refresh tokens that expire within 10 days. If a token expires anyway, the channel becomes disconnected and the customer must open a new connection link. See the channel page.

Frequently asked questions

How long does an Instagram long-lived token last?

60 days. A refreshed token is valid for 60 days from the refresh date. In Meta’s example, expires_in comes back as 5184000 seconds.

Can I refresh a token right after getting it?

No. A refresh is only accepted for a long-lived token that is at least 24 hours old and not yet expired.

Can an expired token be recovered?

No. Tokens not refreshed in 60 days expire and can no longer be refreshed. The customer must log in again.

Do tokens generated in the App Dashboard expire too?

Yes. Dashboard tokens are already long-lived and valid for 60 days, like those from the login flow.

Fontes

Documentação oficial da Meta, conferida em 8 de novembro de 2026.