ETLMCPData Conveyance Works
Log in Start free
Guides

Why Meta connections expire after about 60 days

Meta's long-lived user tokens end after about 60 days and cannot be renewed once expired. How to plan around the date and what etlmcp does near it.

Coming This connector is coming.

A Meta connection stops working after about 60 days because the long-lived user token behind it lasts about that long. Once the token has expired, it cannot be swapped for a new one: the person who connected Meta has to sign in to Facebook again. When the Meta connector is available, etlmcp emails your organization's owners before the end date and again once the connection needs reconnecting. Reconnecting before the date keeps your syncs running with no gap.

Where the 60 days come from

Meta's Facebook Login guide describes two kinds of user token. The one a person gets right after signing in is short-lived and ends within hours. An app can trade it, from its server, for a long-lived token, and Meta's answer says how many seconds the new token lives: roughly 60 days. Meta's guide states the limit: "You can not use an expired token to request a long-lived token." Only a fresh sign-in starts a new one.

The same guide mentions tokens that refresh themselves once a day while a person keeps using an app built on Meta's mobile SDKs. etlmcp reads your ad accounts from its server, with no person using an app, so its token gets no daily refresh and ends on the date Meta gave when it was issued.

What etlmcp records when you connect

When the Meta connector is available, connecting runs Meta's sign-in, then trades the short-lived token for a long-lived one and stores the lifetime Meta returns as the connection's end date. There is no refresh token to keep. If Meta's answer carries no lifetime, etlmcp records no end date, and the connection is then treated as needing a reconnect only when Meta refuses it.

On the sources page, a working Meta connection shows the note "access ends" with its date, next to a Reconnect button you can press at any time.

The emails before and after the end date

When the Meta connector is available, a check that runs once a day looks at every working connection whose platform gives no refresh token, and Meta is one of those.

  • Shortly before the end date, each member with the owner role gets an email titled Your {…} connection expires on {…}, with Meta as the platform and the end date. It names the Facebook login and the organization, and the workspace when there are several. Each connection is warned about once; if no owner could be reached, the next day's check tries again.
  • After the end date, the first daily check marks the connection and its sources as needing a reconnect with the reason access has expired, and the owners get an email titled Reconnect {…}. That email says syncs are paused until someone reconnects and resume by themselves afterwards.

Members who are not owners get neither email; they see the state on the sources page. The full rules, shared with other platforms that cannot renew access, are on expiring connections.

What happens to your data while it is expired

When the connector is available, the scheduler skips every source whose connection needs a reconnect, so every Meta pipeline on that login stops. Nothing is deleted. After you reconnect, the first scheduled sync starts its date range where the range of the last completed scheduled sync began, so it pulls the missed days along with the usual re-pull of the last 29 days. A sync you start by hand with Run now does not reach back this way. It never reaches further back than your plan's history window.

How to avoid the gap

  • Have a person who will stay with the account make the connection. Reconnecting has to be done as the same Facebook user; a reconnect as anyone else changes nothing.
  • When the warning email arrives, reconnect from the sources page right away instead of waiting for the date. Reconnecting stores a new token with a new end date of about 60 days and clears the earlier warning, so you are warned again next time.
  • Grant every permission Meta asks for during the reconnect. If one is declined, nothing is saved.
  • Put the "access ends" date in a shared calendar, since the emails go to owners only.

A connection can also end early, for example when the Facebook password changes or Meta checkpoints the account until the person signs in to Facebook to fix an issue. Meta's error-handling guide lists those cases under error 190; see error 190 subcodes. For the steps after a connection has already lapsed, see needs reconnecting, and the Meta connector for what the connection reads.

Related

Sources

  1. Long-lived access tokens - Facebook Login — developers.facebook.com, checked
  2. Handle Errors - Graph API — developers.facebook.com, checked