FoPost LogoFoPost Docs
WordPressPlatform Configuration

Facebook

Configure Facebook in the FoPost WordPress plugin.

Facebook

Configure the OwlStack WordPress plugin to publish posts to your Facebook Page.

Prerequisites

You need a Facebook App and a Facebook Page with a long-lived Page Access Token.

Getting Facebook API Credentials

  1. Go to Meta for Developers
  2. Create a new app (choose Business type)
  3. Add the Pages API product
  4. Get your App ID and App Secret from the app settings
  5. Generate a Page Access Token using the Graph API Explorer
  6. Exchange it for a long-lived token (60-day expiry) using the token debugger

Token Expiration

Page Access Tokens expire. Use a long-lived token and monitor for expiration. The plugin will report authentication errors when the token expires.

Settings

Navigate to OwlStack > Facebook in the WordPress admin.

FieldDescription
App IDYour Facebook App ID
App SecretYour Facebook App Secret
Page Access TokenLong-lived access token for your Page
Page IDYour Facebook Page's numeric ID
Graph API VersionAPI version to use (e.g., v19.0). Leave blank for the latest.

Step-by-step

  1. Go to OwlStack > Facebook in your WordPress admin
  2. Paste your App ID
  3. Paste your App Secret
  4. Paste your Page Access Token
  5. Enter your Page ID (find it in your Page's About section or via the Graph API)
  6. Optionally set a specific Graph API Version
  7. Click Save Settings

Testing

After saving your settings:

  1. Click Test Connection to verify your access token and Page ID
  2. Click Send Test Message to publish a test post to your Page
  3. Check your Facebook Page to confirm the post appeared

Publishing

Once configured, Facebook appears as a toggle in the OwlStack meta box on post edit screens.

Programmatic publishing

// Simple page post
owlstack()->facebook('Hello from WordPress!');

// Post with a link
owlstack()->facebook('Check out our latest article: https://example.com/post');

Constraints

ConstraintValue
Max text length63,206 characters
Max images per post10
Supported media typesJPEG, PNG, GIF, MP4
Max video size10 GB

Troubleshooting

IssueSolution
"Invalid access token"Token may have expired; generate a new long-lived token
"Page not found"Verify the Page ID is correct
"Permissions error"Ensure your app has pages_manage_posts permission
Posts not visibleCheck your Page's publishing permissions and visibility settings

On this page