Renew your Meta sign-in every 60 days
This page is for when your personal access token runs out, which happens about 60 days after you sign in. Renewing takes a minute and doesn't touch your ads: they keep running whether Claude can reach them or not.
How you'll know
Claude tells you it can't reach Meta, or that the personal Meta server isn't signed in. Meta may call it an expired or invalid token (error 190). To stay ahead of it, put a reminder in your calendar for about 55 days after you sign in.
Sign in again
-
Open a terminal: PowerShell on Windows, Terminal on a Mac.
-
Set your app's values for this window, just as you did the first
time,time.usingReplace the first two quoted items with your own App ID and App secret:-
Windows (PowerShell):
$env:META_APP_ID = "YOUR_APP_ID" $env:META_APP_SECRET = "YOUR_APP_SECRET" $env:META_AUTH_SCOPE = "ads_management,ads_read,business_management,public_profile,pages_show_list,pages_read_engagement,pages_manage_ads" -
Mac (Terminal):
export META_APP_ID="YOUR_APP_ID" export META_APP_SECRET="YOUR_APP_SECRET" export META_AUTH_SCOPE="ads_management,ads_read,business_management,public_profile,pages_show_list,pages_read_engagement,pages_manage_ads"
If you've misplaced them, both are in your app on developers.facebook.com, under App settings → Basic.
-
-
Run:
armavita-meta-ads-mcp --login -
Approve the Facebook screens in your browser. When the terminal says Authentication successful., the new token is saved over the old one.
-
Fully quit Claude and open it again, so the server picks up the new token.
That's all. Your app, the server and Claude's settings stay as they were. Only the token is new.
Something longer-lasting
Tokens from a Business Manager system user don't expire, so there's no 60-day sign-in. They take more setup in your business portfolio, and a separate guide will walk through them. Until then, this renewal is the whole job.
If something doesn't work
The sign-in problems and fixes are the same as the first time: see If something doesn't work on Sign in to Meta and get your access token.