Facebook Setup
Connect your Facebook Page to POSSE Post so it can publish posts on your behalf.
You will need a Meta developer app with the Facebook Pages use case enabled. Visit developers.facebook.com/apps to create one if you have not already.
What you need
- Page ID — the numeric ID of your Facebook Page
- Page Access Token — a long-lived Page Access Token for that Page
Step 1: Enable Facebook Pages permissions
- In your Meta app dashboard, open the Facebook Pages use case and click Customize.
- Click + Add next to each of:
pages_manage_metadata,pages_manage_posts,pages_read_engagement. - Confirm all three permissions show Ready for testing.
Step 2: Generate a user access token
- In Meta for Developers, open Tools → Graph API Explorer.
- Click Add a permission and select:
business_management,pages_manage_metadata,pages_manage_posts,pages_read_engagement,pages_show_list. - Select User Token and click Generate Access Token. Authorize when prompted.
Step 3: Exchange for a long-lived user access token
- In Meta for Developers, open Tools → Access Token Debugger.
- Paste the user access token from Step 2 and click Debug.
- Confirm the required scopes are listed, then scroll down and click Extend Access Token.
- Re-enter your password when prompted. Copy the resulting long-lived user token (valid for about 60 days).
Step 4: Get your Page ID and long-lived Page Access Token
A Page Access Token requested with a long-lived user token does not expire.
- In Graph API Explorer, paste the long-lived user token from Step 3 into the Access Token field.
- Replace the request path with
me/accountsand click Submit. - In the JSON response, find your Page in the
dataarray and copy: id— this is your Page IDaccess_token— this is your long-lived Page Access Token- Paste the Page Access Token into the Access Token Debugger and confirm it shows Type: Page and Expires: Never.
If the debugger shows Type: User or an expiration date, you copied the user token instead of the Page token.
Step 5: Publish your Meta app
Posts created by POSSE Post will only be visible to others once your Meta app is published.
Facebook requires a publicly-accessible privacy policy URL before you can publish your app. See Facebook's privacy policy requirements for what must be included.
Every site running POSSE Post automatically provides a suitable privacy policy at /posse-post/privacy/facebook. You can use that URL or create your own.
- In Meta for Developers, click Publish in the left sidebar.
- Click Go to app settings and add your Privacy Policy URL.
- Save, return to Publish, and click Publish.
Step 6: Add Facebook to POSSE Post
- Go to Add social account and select Facebook as the platform.
- Add each content type you want to crosspost from.
- In the Facebook credentials section, enter the Page ID from Step 4.
- Save the account.
- Add the access token to your
.envfile: FACEBOOK_PAGE_ACCESS_TOKEN— the long-lived token from Step 4
Token expiration
Long-lived Page Access Tokens generated from a long-lived user token are typically permanent and show Never in the Expires column on the Social Accounts list. POSSE Post checks the token status automatically whenever you save the account.
If a token does have an expiration date, it will appear in the Expires column 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 refresh the expiration status at any time, go to Social Accounts and click Operations → Refresh expiration.
Renewing an expired token
Facebook tokens cannot be extended once they expire. Meta can also invalidate a token early, for example if you change your Facebook password or remove the app from your account. To replace it:
- Repeat Step 2 through Step 4 to generate a new Page Access Token.
- Replace
FACEBOOK_PAGE_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.
Image support
If you map an Image field on the social account, POSSE Post will publish a photo post with the image embedded directly. Without a mapped image field, posts go to the Facebook feed as text posts with an optional link card.
When Attach website card is enabled alongside an image, Facebook's API does not support a link card on photo posts. Instead, the node URL is appended to the caption so it remains clickable.