Instagram "session invalid" or "token expired": how to fix it?

Answered by Sanjay, founder of InstantDM (official Meta Business Partner) ·Last checked

Short answer

Instagram disconnects an automation tool when it ends the login session, most often after a password change, a security checkpoint, or removing the app's access. The fix is to reconnect. In InstantDM, click the button on the red banner, or go to Account Settings, Safety & Limits and click Re-Connect, then approve every permission. Your automations are kept.

Ask an AI with this answer: Ask ChatGPT Ask Claude Plain text version

Why Instagram ends the session

When you connect an automation tool, Instagram gives it an access token, a key that lets it read comments and send DMs for you. Instagram cancels that token when:

  • you change your Instagram password,
  • Instagram asks you to pass a security checkpoint,
  • you remove the app from Instagram's connected apps,
  • the session simply expires.

From then on every send fails with an error like "Error validating access token", and the tool stops. No tool can bring a cancelled token back. You have to log in again. "Error 400 Session Invalid" on the connect screen itself is usually a login problem in your browser; see can't connect Instagram.

How to reconnect Instagram

  1. If Instagram showed you a security check, open the Instagram app on your phone and finish it first.
  2. In InstantDM, click the button on the red banner that says your Instagram connection expired. If there's no banner, go to Account Settings → Safety & Limits and click Re-Connect on the Instagram Account card.
  3. Reconnect the same way you first connected. If you use a Facebook Page, use the Facebook Page option.
  4. Log in as the same Instagram account and approve every permission. If you untick messaging, DMs can't be sent.
  5. Open Automation Recovery → Missed & Failed and click Resend for DMs that failed while you were disconnected.

On the phone app, tap the connection expired banner, or go to Settings → Safety & Limits → Instagram Account → Re-Connect.

How InstantDM handles a disconnect

  • Alerts: a red banner in the web app and the phone app, and the email "Your Instagram disconnected - DMs stopped". It's sent right away, then after 24 and 48 hours, then every 72 hours, up to 10 emails.
  • Nothing is deleted. Automations, flows and settings are kept.
  • If the red banner is gone after reconnecting, you are connected again and any reminder email that arrives later can be ignored.
  • If everything stopped at once and reconnecting doesn't help, work through all my automations stopped.

Questions people also ask

Error 400 session invalid: how do I solve it?

Log out of Instagram and back in on your phone, finish any security check Instagram shows, then reconnect the account in your automation tool. If it appears while connecting for the first time, see the can't connect Instagram FAQ.

Will I lose my automations when I reconnect?

No. Reconnecting only logs InstantDM in to Instagram again. Your automations and settings stay as they were.

Why does my Instagram keep disconnecting?

Each password change, security checkpoint or removal of the app in Instagram's settings ends the session. Reconnecting is the only fix, since an ended session can't be refreshed by any tool.

Do I get told when it disconnects?

Yes. InstantDM emails 'Your Instagram disconnected - DMs stopped' right away, then after 24 and 48 hours, then every 72 hours, up to 10 emails, and shows a red banner in the app.

Can I send the DMs I missed while disconnected?

Yes, within Instagram's windows. After reconnecting, open Automation Recovery, Missed & Failed and click Resend. Comments can be answered for about 7 days, messages for about 24 hours.

Related questions

Step-by-step guides