FoPost LogoFoPost Docs
WordPressPlatform Configuration

Twitter / X

Configure Twitter (X) in the FoPost WordPress plugin.

Twitter / X

Configure the OwlStack WordPress plugin to publish posts to your Twitter (X) account.

Prerequisites

You need a Twitter Developer account with API access.

Getting Twitter API Credentials

  1. Go to the Twitter Developer Portal
  2. Create a new project and app
  3. Navigate to Keys and tokens
  4. Generate your Consumer Keys (API Key & Secret)
  5. Generate your Access Token and Secret

API Access Level

You need at least Basic tier API access to post tweets. The free tier only supports read access. Ensure your app has Read and Write permissions.

Settings

Navigate to OwlStack > Twitter / X in the WordPress admin.

FieldDescription
Consumer Key (API Key)Your app's API key from the Developer Portal
Consumer SecretYour app's API secret key
Access TokenOAuth access token for your account
Access Token SecretOAuth access token secret

Step-by-step

  1. Go to OwlStack > Twitter / X in your WordPress admin
  2. Paste your Consumer Key (API Key)
  3. Paste your Consumer Secret
  4. Paste your Access Token
  5. Paste your Access Token Secret
  6. Click Save Settings

Testing

After saving your settings:

  1. Click Test Connection to verify your API credentials
  2. Click Send Test Message to publish a test tweet
  3. Check your Twitter profile to confirm the tweet appeared

Publishing

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

Programmatic publishing

// Simple tweet
owlstack()->twitter('Hello from WordPress!');

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

Constraints

ConstraintValue
Max tweet length280 characters
Max images per tweet4
Supported media typesJPEG, PNG, GIF, MP4
Max video length2 minutes 20 seconds

Troubleshooting

IssueSolution
"Unauthorized" errorDouble-check all four API credentials
"Forbidden" errorEnsure your app has Read and Write permissions
Duplicate content errorTwitter rejects identical consecutive tweets
Rate limit exceededWait 15 minutes; consider spacing out posts

On this page