Skip to content

Instagram error 4: Application request limit reached

Instagram error 4: Application request limit reached. The cause, the fix, whether a retry is safe, and the PubNio delivery issue it settles.

Instagram error 4 is “Application request limit reached”. The app whose token made the request reached its rate limit. A publish that gets it fails the try with provider_rate_limited, and PubNio retries it automatically. Checked 2026-12-05.

Exact error

error.code: 4; HTTP status not stated by Meta.

{
  "error": {
    "type": "OAuthException",
    "code": 4
  }
}

Returned by POST /{ig-user-id}/media_publish.

Cause

Meta counts Graph calls per app across every Instagram account and Facebook Page it serves. PubNio’s Meta app crossed that budget on media_publish, so the limit says nothing about this account’s own posting. Every customer of the same app draws on this budget, which grows with the number of people who use the app each day.

Fix

No change on the Instagram account is needed. PubNio calls media_publish again after a wait, up to three times; if the target still fails, retry it with posts.retry after the hour rolls over. The X-App-Usage header on Graph responses shows how close the app is to the cap: call_count near 100 means little room is left.

Retry safety

Yes: the provider created nothing. PubNio retries up to three times, after the wait the provider names or a growing backoff, and never when the provider asks for more than an hour.

PubNio issue

  • On a publish: provider_rate_limited, status failed, and PubNio schedules a replacement attempt.

Observed

Replayed through the adapter in packages/core/test/provider-error-catalog.test.ts and packages/core/test/publish-classification.test.ts.

Limits

Another Instagram endpoint can return 4 for another reason.

Sources

  • Graph API: Rate limiting, checked 2026-12-05
  • PubNio: packages/core/src/integration/providers/meta.ts#metaThrottleBody, packages/core/src/integration/provider-errors/mappings.ts#publishRateLimited, packages/core/src/post/delivery-store.ts#automaticRetryDelayMs

Type to search…

↑↓ navigate↵ selectEsc close