A Threads API access token comes from your own Meta app: you add your Threads account to the app as a tester, accept the invite inside Threads, generate a 1-hour token in Graph API Explorer and exchange it for a 60-day one. If adding the tester fails with "Form can't be saved", or the token window returns error 1349245, check Meta's Accounts Center first: your Threads, Instagram and Facebook accounts must be linked and confirmed. Then wait and try again later. Rebuilding the app does not help.
Getting stuck on that check cost me almost three weeks. I did every step below myself in Meta's dashboards; Claude Code, the AI agent I work with, searched for other reports and read the server responses with me.
The short version
- There is no "Threads API key". You get an access token for your own account through a Meta app.
- Without Advanced Access, the app can post only for its Threads testers. For your own account that is enough.
- The invite is accepted in Threads: Settings, Account, Website permissions, Invites.
- "Form can't be saved" when adding a tester, a missing Invites tab, and error 1349245 were one problem for us: the account side was not ready. Link the accounts, confirm them, wait, retry.
- The token from Graph API Explorer expires in 1 hour. The 60-day exchange needs the Threads app secret, not the app's main secret.
How to get Threads API access, step by step
- Register as a Meta developer. Until you do, the link to create an app says the page does not exist.
- Link your accounts first. In Accounts Center, connect your Threads and Instagram accounts to Facebook and confirm your email and phone number. Do this before step 4, not after it fails.
- Create an app with the "Access the Threads API" use case. Add the permissions you need:
threads_basicfor every call,threads_content_publishto post,threads_manage_repliesto reply. - Add yourself as a Threads tester. App roles, Roles, Add people, choose Threads Tester, type your Threads username.
- Accept the invite in Threads. On threads.com or in the app: Settings, Account, Website permissions, Invites. Old guides link to
threads.net/settings; that page would not load for us. - Generate a token. In Graph API Explorer, switch the host to
threads.net, choose "Generate Threads Access Token" and log in with the account that accepted the invite. This token expires in 1 hour. - Exchange it for a 60-day token with the Threads app secret:
curl -s "https://graph.threads.net/access_token?grant_type=th_exchange_token&client_secret=$THREADS_APP_SECRET&access_token=$SHORT_TOKEN" - Refresh it before day 60. A long-lived token can be refreshed once it is at least 24 hours old. The refresh needs no secret:
curl -s "https://graph.threads.net/refresh_access_token?grant_type=th_refresh_token&access_token=$LONG_TOKEN" Meta's docs say Threads has its own app ID and app secret, separate from the app's main ones. If the exchange rejects your secret, check that you copied the Threads one.
"Form can't be saved" when adding a Threads tester
What you see: a red banner, "Form can't be saved. An error occurred while processing the request." Under the field: "A Facebook Developer Account is required to be added to an app. Test users can't be added." It shows up even when you own the developer account.
What it is: open the browser's developer tools, Network tab, and repeat the click. The response we got showed "A server error field_exception occured", code 1675030, is_transient false, from the operation xfb_developer_app_roles_add. The request failed on Meta's server, not because of a field in the form.
What did not help on the same evening:
- turning off the browser's tracker shields;
- filling in the app's icon, privacy policy URL and category;
- passing the identity check behind the debug link in the error;
- creating a second, empty app: same error, so it is not your app's settings.
What worked: our Threads and Instagram accounts were not linked to Facebook in Accounts Center. We linked them that evening and retried at once: still the same error. When I came back later, Meta asked me to confirm the account (email and phone), and after that the tester was added on the first click.
So link the accounts, confirm them, and give it time before you retry. We do not know how long Meta needs; for us the same evening was too early. Meta did not tell us the cause, so treat this as what worked, not as a documented rule.
You are not the only one. In Meta's own sample repository, an issue opened in May 2026 reports the Threads settings form failing to save (fbsamples/threads_api issue 73). A Meta contributor answered it on 2026-10-30 with "could you please try again?".
Error 1349245: "The user has not accepted the invite to test the app"
This comes from the Threads login window in Graph API Explorer. Two cases:
- The invite exists and you have not accepted it. Accept it in Threads (step 5) and generate the token again.
- There is no invite. If Website permissions in Threads shows only Active, Expired and Removed tabs and no Invites tab, the tester was never added. Go back to the section above: link the accounts, wait, add the tester again.
On Meta's developer forum this error is usually answered with "accept the invite", and several people reply that no invite ever arrived (forum thread). That is the second case.
How long the tokens last
| Token | Lifetime | How you get it |
|---|---|---|
| Short-lived | 1 hour | Graph API Explorer, or the OAuth login of your app |
| Long-lived | 60 days | th_exchange_token with the Threads app secret |
| Refreshed long-lived | 60 more days | th_refresh_token, once the token is at least 24 hours old |
The permission grant of a public profile lasts 90 days and each refresh extends it. Meta's docs say a private profile's grant cannot be extended, so keep the profile public if a script posts for you.





