Back to Autogpt

Ayrshare Post To Facebook

docs/integrations/block-integrations/ayrshare/post_to_facebook.md

0.6.443.5 KB
Original Source

Ayrshare Post To Facebook

<!-- MANUAL: file_description -->

Blocks for posting content to Facebook Pages using the Ayrshare social media management API.

<!-- END MANUAL -->

Post To Facebook

What it is

Post to Facebook using Ayrshare

How it works

<!-- MANUAL: how_it_works -->

This block uses Ayrshare's social media API to publish content to Facebook Pages. It supports text posts, images, videos, carousels (2-10 items), Reels, and Stories, with features like audience targeting by age and country, location tagging, and scheduling.

The block authenticates through Ayrshare and leverages the Meta Graph API to handle various Facebook-specific formats. Advanced options include draft mode for Meta Business Suite, custom link previews, and video thumbnails. Results include post IDs for tracking engagement.

<!-- END MANUAL -->

Inputs

InputDescriptionTypeRequired
postThe post text to be publishedstrNo
media_urlsOptional list of media URLs to include. Set is_video in advanced settings to true if you want to upload videos.List[str]No
is_videoWhether the media is a videoboolNo
schedule_dateUTC datetime for scheduling (YYYY-MM-DDThh:mm:ssZ)str (date-time)No
disable_commentsWhether to disable commentsboolNo
shorten_linksWhether to shorten linksboolNo
unsplashUnsplash image configurationstrNo
requires_approvalWhether to enable approval workflowboolNo
random_postWhether to generate random post textboolNo
random_media_urlWhether to generate random mediaboolNo
notesAdditional notes for the poststrNo
is_carouselWhether to post a carouselboolNo
carousel_linkThe URL for the 'See More At' button in the carouselstrNo
carousel_itemsList of carousel items with name, link and picture URLs. Min 2, max 10 items.List[CarouselItem]No
is_reelsWhether to post to Facebook ReelsboolNo
reels_titleTitle for the Reels video (max 255 chars)strNo
reels_thumbnailThumbnail URL for Reels video (JPEG/PNG, <10MB)strNo
is_storyWhether to post as a Facebook StoryboolNo
media_captionsCaptions for each media itemList[str]No
location_idFacebook Page ID or name for location taggingstrNo
age_minMinimum age for audience targeting (13,15,18,21,25)intNo
target_countriesList of country codes to target (max 25)List[str]No
alt_textAlt text for each media itemList[str]No
video_titleTitle for video poststrNo
video_thumbnailThumbnail URL for video poststrNo
is_draftSave as draft in Meta Business SuiteboolNo
scheduled_publish_dateSchedule publish time in Meta Business Suite (UTC)strNo
preview_linkURL for custom link previewstrNo

Outputs

OutputDescriptionType
errorError message if the operation failedstr
post_resultThe result of the postPostResponse
postThe result of the postPostIds

Possible use case

<!-- MANUAL: use_case -->

Product Launches: Create carousel posts showcasing multiple product images with links to purchase pages.

Event Promotion: Share event details with age-targeted reach and location tagging for local business events.

Short-Form Video: Automatically publish Reels with custom thumbnails to maximize video content reach.

<!-- END MANUAL -->