FoPost LogoFoPost Docs
Platforms

Pinterest

Creating pins with board and section targeting.

Pinterest

Create pins with board and section targeting via the Pinterest API.

Connect

Connect Pinterest in the OwlStack dashboard:

  1. Go to Project Settings > Platforms > Pinterest
  2. Click Connect with Pinterest
  3. Authorize OwlStack via OAuth
  4. Select your target board

Publishing

use OwlStack\Enums\Platform;

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

Options

OptionTypeDescription
board_idstringOverride target board
board_section_idstringTarget section within the board
alt_textstringAlt text for accessibility
$post = Post::create('Beautiful sunset photo')
    ->withMedia(Media::image('/path/to/sunset.jpg'))
    ->withUrl('https://example.com/sunset');

$result = $client->publish($post, [Platform::Pinterest], [
    'board_section_id' => '...',
    'alt_text' => 'Sunset over the ocean',
]);

Constraints

ConstraintValue
Max text length800 characters
Supported media typesJPEG, PNG, GIF, WebP, MP4

On this page