Developer docsCRM Gateway API reference Postman العربية

Publishing

content.typeFacebookInstagram
text✓✗ (Instagram rejects text-only)
link✓✗
image✓✓ (JPEG, public HTTPS URL)
video✓ (a Page video)✓ (a Reel, shared to the feed)

Images

One image, or up to 10 in media (in order). More than one goes out as a Facebook album and an Instagram carousel. Each is either a public URL, or you upload it first with POST /api/v1/uploads (multipart, field file) and use the uploadId. We check type, size and dimensions from the file's bytes. By default that's JPEG or PNG up to 8 MB, though a company's limits may differ.

"media": [ { "source": "upload", "uploadId": "0192..." } ]

Video

A video post needs exactly one MP4 uploaded to the platform (not a URL); Meta fetches it from our public link. Upload it with POST /api/v1/uploads like an image (MP4 up to 100 MB by default) and send its uploadId in media. On a Facebook Page it becomes a video, on Instagram a Reel, which Instagram takes a minute or two to prepare. content.type = video with anything but an uploaded MP4 answers 400 (content.media[0]: must_be_uploaded_mp4).

"content": { "type": "video", "message": "...", "media": [ { "source": "upload", "uploadId": "0192..." } ] }

Image descriptions

Each image can carry an altText (up to 1,000 characters): a description Facebook and Instagram read out to people who can't see the picture.

"media": [ { "source": "upload", "uploadId": "0192...", "altText": "شنطة جلد بني على ترابيزة خشب" } ]

Post extras

All optional, in options. A platform that doesn't have one ignores it:

"options": { "firstComment": "اطلب من هنا 👇 https://shop.example", "countries": ["EG", "SA"], "minAge": 18, "collaborators": ["partner.shop"] }

The first comment needs Meta's comment permissions (pages_manage_engagement and instagram_manage_comments).

Scheduling

"publishing": { "mode": "scheduled", "scheduledAt": "2026-10-01T09:00:00Z" }

You can cancel before publishing starts with POST /api/v1/posts/{id}/cancel.

A result per account

Each target has its own status. The post ends as published, partially_published or failed. Retry only the failed ones with POST /api/v1/posts/{id}/retry.

Automatic retries

We retry rate limits and temporary Meta outages on our own, waiting a little longer each time. We don't retry expired tokens, missing permissions or rejected media, because repeating wouldn't change the outcome.