Instagram Setup
Connect your Instagram account to POSSE Post so it can publish posts on your behalf.
You will need a Meta developer app with the Instagram use case enabled. Visit developers.facebook.com/apps to create one if you have not already. Your Instagram account must be a Professional account (Creator or Business).
Note: Instagram requires an image on every post. Nodes without a mapped image field will fail to crosspost.
What you need
- User ID — your Instagram Professional account's numeric user ID
- App ID — your Meta app's numeric ID
- App Secret — your Meta app's secret
- Access Token — a long-lived (60-day) access token with
instagram_content_publishpermission
Step 1: Enable instagram_content_publish
- In your Meta app dashboard, open the Instagram use case and click Customize.
- Click Add all required permissions, then click Go to permissions and features.
- Find
instagram_content_publishand click + Add. - Verify it reads Ready for testing.
Step 2: Add yourself as an Instagram tester
- In the left sidebar, go to App roles → Roles and click Add People.
- Select Instagram Tester, enter your Instagram username, and click Add.
Step 3: Accept the tester invite in Instagram
- In Instagram, open Account settings → Website permissions → Apps and websites → Tester Invites.
- Find your app and click Accept.
Step 4: Copy your App ID and App Secret
- In Meta for Developers, go to App settings → Basic.
- Copy the App ID and App Secret.
Step 5: Generate an access token and copy your User ID
- In your app dashboard, click Instagram → API setup with Instagram business login in the left sidebar.
- Under Generate access tokens, your Instagram User ID is the number shown under your username — click it to copy.
- Click Generate token next to your username and log in when prompted.
- Grant the Access and publish content permission and click Allow.
- Check I understand and copy the generated Access Token.
Tokens generated in the app dashboard are long-lived and valid for 60 days, so no exchange step is needed.
Step 6: Exchange a short-lived token (only if needed)
Skip this step if you used Generate token in Step 5. If you have a short-lived (1-hour) token from another source, such as the Business Login flow, exchange it for a long-lived token:
GET https://graph.instagram.com/access_token
?grant_type=ig_exchange_token
&client_secret={app-secret}
&access_token={short-lived-token}
Copy the access_token value from the JSON response.
Step 7: Publish your Meta app
Posts will only be visible to the public once your Meta app is published.
- In Meta for Developers, click Publish in the left sidebar.
- Click Go to app settings and add a publicly-accessible Privacy Policy URL.
- Save, return to Publish, and click Publish.
Step 8: Add Instagram to POSSE Post
- Go to Add social account and select Instagram as the platform.
- Add each content type you want to crosspost from.
- In the Instagram credentials section, enter your User ID from Step 5 and App ID from Step 4.
- Add these to your
.envfile: INSTAGRAM_APP_SECRET— App Secret from Step 4INSTAGRAM_ACCESS_TOKEN— the long-lived token from Step 5 (or Step 6)
Make sure to map an image field for each configured content type — Instagram will skip any post without an image.
Token expiration
Long-lived Instagram access tokens expire after 60 days, but can be extended indefinitely. POSSE Post tracks the expiration date and displays it in the Expires column on the Social Accounts list and on the account edit form. Editors will also see a warning in the POSSE Post panel when editing an unpublished node if a token has expired or is expiring within 14 days.
To extend the token and update the stored expiration date, go to Social Accounts and click Operations → Refresh expiration. This calls Instagram's token refresh endpoint, which resets the 60-day window. Saving the account also triggers a refresh automatically.
Instagram only refreshes tokens that are at least 24 hours old and have not yet expired, so refresh before the expiration date.
Renewing an expired token
An expired Instagram token cannot be refreshed. To replace it:
- Repeat Step 5 to generate a new long-lived token.
- Replace
INSTAGRAM_ACCESS_TOKENin your.envfile or hosting environment with the new token. Restart or redeploy so the new value reaches PHP (for example,ddev restart). - Go to Social Accounts and click Operations → Refresh expiration to store the new expiration date.
- On the Crossposts tab, click Publish now for any crossposts that failed while the token was expired.
Testing in a local ddev environment
Instagram's servers must be able to fetch your image URL directly. Local ddev hostnames (e.g. https://mysite.ddev.site/...) are not publicly accessible, so image uploads will fail with a "media download has failed" error.
To test locally, expose your ddev site with ngrok:
ddev share --provider=ngrok
This prints a public URL such as https://abc123.ngrok-free.app. Use a node whose image is served from that URL (or temporarily set the image field to a publicly accessible image already on the web). Once you save the node and trigger a crosspost, Instagram can fetch the image and the publish flow will complete.