diff --git a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/streams/base_insight_streams.py b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/streams/base_insight_streams.py index 239e3c1e9126..d00f215ab5f9 100644 --- a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/streams/base_insight_streams.py +++ b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/streams/base_insight_streams.py @@ -137,7 +137,7 @@ def read_records( self._advance_cursor() expires_at = self._api.api.get_access_token_expiration() - if expires_at and pendulum.from_timestamp(expires_at) - pendulum.now() < pendulum.duration(days=47): + if expires_at and pendulum.from_timestamp(expires_at) - pendulum.now() < pendulum.duration(days=57): self.logger.error(f"Access token expires at {pendulum.from_timestamp(expires_at)}. Please reconnect the source.") @property