WordPressPlatform Configuration
Configure Reddit in the FoPost WordPress plugin.
Configure the OwlStack WordPress plugin to publish posts to Reddit subreddits.
Prerequisites
You need a Reddit account and a registered Reddit app.
Getting Reddit API Credentials
- Go to Reddit App Preferences
- Click Create App or Create Another App
- Choose script as the app type
- Set the redirect URI to
http://localhost - Note your client ID (below the app name) and client secret
- Generate an Access Token using OAuth 2.0
Subreddit Rules
Each subreddit has its own posting rules and rate limits. Automated posting may violate some subreddits' rules. Always check the subreddit's guidelines before enabling auto-publish.
Settings
Navigate to OwlStack > Reddit in the WordPress admin.
| Field | Description |
|---|---|
| Access Token | Reddit OAuth access token |
| Subreddit | Target subreddit name (without r/) |
| Username | Your Reddit username |
Step-by-step
- Go to OwlStack > Reddit in your WordPress admin
- Paste your Access Token
- Enter the target Subreddit name (e.g.,
wordpress) - Enter your Reddit Username
- Click Save Settings
Testing
After saving your settings:
- Click Test Connection to verify your access token
- Click Send Test Message to submit a test post
- Check the subreddit to confirm your post appeared
Publishing
Once configured, Reddit appears as a toggle in the OwlStack meta box on post edit screens.
Programmatic publishing
// Submit a link post
owlstack()->reddit('Check out our new article', [
'type' => 'link',
'url' => 'https://example.com/post',
]);
// Submit a text post
owlstack()->reddit('Here is my content for the subreddit.');Constraints
| Constraint | Value |
|---|---|
| Max title length | 300 characters |
| Max self-text length | 40,000 characters |
| Rate limit | ~10 requests per minute |
| Supported post types | Link, Text, Image, Video |
Troubleshooting
| Issue | Solution |
|---|---|
| "Unauthorized" error | Access token may have expired; regenerate it |
| "Forbidden" | You may not have permission to post in the subreddit |
| "RATELIMIT" | Wait before posting again; Reddit enforces strict rate limits |
| Post removed | Check the subreddit's rules for self-promotion policies |