FoPost LogoFoPost Docs
WordPressPlatform Configuration

Instagram

Configure Instagram in the FoPost WordPress plugin.

Instagram

Configure the OwlStack WordPress plugin to publish posts to your Instagram Business or Creator account.

Prerequisites

You need an Instagram Business or Creator account connected to a Facebook Page, and a valid Instagram Graph API access token.

Getting Instagram API Credentials

  1. Convert your Instagram account to a Business or Creator account
  2. Connect it to a Facebook Page
  3. Go to Meta for Developers and create an app
  4. Use the Graph API Explorer to get your Access Token
  5. Query me/accounts to find your Page, then use the Page token to get your Instagram Account ID via {page-id}?fields=instagram_business_account

Account Type Required

The Instagram API only works with Business or Creator accounts. Personal accounts are not supported.

Settings

Navigate to OwlStack > Instagram in the WordPress admin.

FieldDescription
Access TokenA valid Instagram Graph API access token
Instagram Account IDYour Instagram Business Account's numeric ID

Step-by-step

  1. Go to OwlStack > Instagram in your WordPress admin
  2. Paste your Access Token
  3. Enter your Instagram Account ID
  4. Click Save Settings

Testing

After saving your settings:

  1. Click Test Connection to verify your access token and account ID
  2. Click Send Test Message to publish a test post
  3. Check your Instagram profile to confirm the post appeared

Publishing

Once configured, Instagram appears as a toggle in the OwlStack meta box on post edit screens.

Programmatic publishing

// Post with an image (required for Instagram)
owlstack()->instagram('Hello from WordPress!', [
    'type' => 'photo',
    'url'  => 'https://example.com/image.jpg',
]);

Image Required

Instagram requires at least one image or video for every post. Text-only publishing is not supported by the Instagram API.

Constraints

ConstraintValue
Max caption length2,200 characters
Max images per carousel10
Supported image typesJPEG, PNG
Max image size8 MB
Supported video typesMP4, MOV
Max video duration60 seconds (feed), 90 seconds (Reels)

Troubleshooting

IssueSolution
"Invalid access token"Token may have expired; generate a new one
"Account not found"Verify the Instagram Account ID is the business account ID, not the Page ID
"Media required"Instagram does not support text-only posts; include an image or video
"Permission denied"Ensure your app has instagram_basic and instagram_content_publish permissions

On this page