FoPost LogoFoPost Docs
Platforms

Reddit

Publishing self and link posts to subreddits.

Reddit

Post to subreddits with flair, NSFW, and spoiler support.

Connect

Connect Reddit in the OwlStack dashboard:

  1. Go to Project Settings > Platforms > Reddit
  2. Click Connect with Reddit
  3. Authorize OwlStack via OAuth
  4. Your Reddit account appears as connected

Publishing

use OwlStack\Enums\Platform;

$result = $client->publish($post, [Platform::Reddit]);

Options

OptionTypeDescription
subredditstringRequired. Target subreddit (without r/)
kindstringself (text) or link
flair_idstringPost flair ID
nsfwboolMark as NSFW
spoilerboolMark as spoiler
$result = $client->publish($post, [Platform::Reddit], [
    'subreddit' => 'php',
    'kind' => 'self',
    'flair_id' => '...',
]);

Constraints

ConstraintValue
Max text length40,000 characters
Max media1
Supported media typesJPEG, PNG, GIF
Post typesSelf (text) and Link

On this page