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
- Go to the Twitter Developer Portal
- Create a new project and app
- Navigate to Keys and tokens
- Generate your Consumer Keys (API Key & Secret)
- 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.
| Field | Description |
|---|---|
| Consumer Key (API Key) | Your app's API key from the Developer Portal |
| Consumer Secret | Your app's API secret key |
| Access Token | OAuth access token for your account |
| Access Token Secret | OAuth access token secret |
Step-by-step
- Go to OwlStack > Twitter / X in your WordPress admin
- Paste your Consumer Key (API Key)
- Paste your Consumer Secret
- Paste your Access Token
- Paste your Access Token Secret
- Click Save Settings
Testing
After saving your settings:
- Click Test Connection to verify your API credentials
- Click Send Test Message to publish a test tweet
- 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
| Constraint | Value |
|---|---|
| Max tweet length | 280 characters |
| Max images per tweet | 4 |
| Supported media types | JPEG, PNG, GIF, MP4 |
| Max video length | 2 minutes 20 seconds |
Troubleshooting
| Issue | Solution |
|---|---|
| "Unauthorized" error | Double-check all four API credentials |
| "Forbidden" error | Ensure your app has Read and Write permissions |
| Duplicate content error | Twitter rejects identical consecutive tweets |
| Rate limit exceeded | Wait 15 minutes; consider spacing out posts |