FoPost LogoFoPost Docs
Platforms

Instagram

Publishing photos, carousels, Reels, and Stories to Instagram.

Instagram

Instagram uses a two-step container publishing flow. OwlStack handles this automatically on the server.

Connect

Connect Instagram in the OwlStack dashboard:

  1. Go to Project Settings > Platforms > Instagram
  2. Click Connect with Instagram
  3. Authorize via Facebook Business (Instagram requires a Facebook Business account)
  4. Select the Instagram Business account to connect

Publishing

use OwlStack\Enums\Platform;

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

Options

OptionTypeDescription
media_typestringIMAGE, REELS, or STORIES
location_idstringFacebook location ID
alt_textstringAlt text for accessibility
// Single image
$post = Post::create('Check out this photo!')
    ->withMedia(Media::image('/path/to/photo.jpg'));

$result = $client->publish($post, [Platform::Instagram], [
    'alt_text' => 'Photo description',
]);

// Carousel
$post = Post::create('My gallery')
    ->withMediaCollection(new MediaCollection([
        Media::image('/path/to/1.jpg'),
        Media::image('/path/to/2.jpg'),
    ]));

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

Media uploads

OwlStack uploads your media to the server before publishing to Instagram. You don't need to host images at publicly accessible URLs.

Constraints

ConstraintValue
Max text length2,200 characters
Max media (carousel)10
Supported media typesJPEG, MP4

On this page