Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 2.18 KB

File metadata and controls

32 lines (26 loc) · 2.18 KB

Zernio::FacebookPlatformData

Properties

Name Type Description Notes
draft Boolean When true, creates the post as a draft in Facebook Publishing Tools instead of publishing immediately. Supported for feed posts (text, link, image, video) and reels. Not supported for stories. Drafts expire after ~30 days. [optional][default to false]
content_type String Set to 'story' for Page Stories (24h ephemeral) or 'reel' for Reels (short vertical video). Defaults to feed post if omitted. [optional]
title String Reel title (only for contentType=reel). Separate from the caption/content field. [optional]
first_comment String Optional first comment to post immediately after publishing (feed posts and reels, not stories). Skipped when draft is true. [optional]
page_id String Target Facebook Page ID for multi-page posting. If omitted, uses the default page. Use GET /v1/accounts/{id}/facebook-page to list pages. [optional]
geo_restriction GeoRestriction [optional]
carousel_cards Array<FacebookPlatformDataCarouselCardsInner> Renders the post as a multi-link carousel (organic Page post). When set, mediaItems must be provided with the same length and all items must be images (no videos). Each cards[i] adds the click-through link and headline for the image at mediaItems[i]. Mutually exclusive with contentType=story reel. Facebook display truncates name at ~35 chars and description at ~30 chars; longer strings are accepted but get truncated on render.
carousel_link String Optional top-level &quot;See more&quot; destination shown on the carousel end card. Defaults to the first card's link when omitted. Only used together with carouselCards. [optional]

Example

require 'zernio-sdk'

instance = Zernio::FacebookPlatformData.new(
  draft: null,
  content_type: null,
  title: null,
  first_comment: null,
  page_id: null,
  geo_restriction: null,
  carousel_cards: null,
  carousel_link: null
)