FoPost LogoFoPost Docs
Platforms

Facebook

Publishing to Facebook Pages.

Facebook

Publish to Facebook Pages with support for scheduled publishing and privacy targeting.

Connect

Connect Facebook in the OwlStack dashboard:

  1. Go to Project Settings > Platforms > Facebook
  2. Click Connect with Facebook
  3. Authorize OwlStack and select the Pages you manage
  4. Your Pages appear as connected

Publishing

use OwlStack\Enums\Platform;

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

Options

OptionTypeDescription
privacyarrayPrivacy setting (e.g., ['value' => 'EVERYONE'])
scheduled_publish_timeintUnix timestamp for scheduled publishing (Pro plan)
$result = $client->publish($post, [Platform::Facebook], [
    'privacy' => ['value' => 'EVERYONE'],
]);

Constraints

ConstraintValue
Max text length63,206 characters
Max media1
Supported media typesJPEG, PNG, GIF, BMP, MP4, AVI

On this page