Simplified icon

Simplified

Simplified

Actions2

Overview

This node integrates with a social media management service to create posts on various social networks. It supports scheduling posts, adding them to a queue, or saving them as drafts. Users can specify the target social network, account, message content, media attachments, and platform-specific settings.

Common scenarios include:

  • Automating social media marketing by scheduling posts in advance.
  • Managing multiple social accounts from one workflow.
  • Creating drafts for review before publishing.
  • Posting different types of content (e.g., videos, photos, stories) tailored to each platform.

Practical example:

  • A marketing team schedules a Facebook post with an image and a call-to-action link to be published next week.
  • A content creator uploads a TikTok video with specific privacy settings and disables comments.
  • A business owner creates a Google My Business offer post with start/end dates and coupon codes.

Properties

Name Meaning
Action What to do with the post: Schedule, Add to Queue, or Add as Draft.
Network Type The social media platform to post on. Options: Bluesky, Facebook, Google Profile, Instagram, LinkedIn, Pinterest, Threads, TikTok (Business), TikTok (Personal), YouTube.
Account Name or ID The specific social media account to post from. Loaded dynamically based on selected network.
Message The text content of the social media post.
Schedule Date Date and time when the post should be published (used only if Action is Schedule or Add as Draft).
Media One or more media items (images, videos) specified by URL or asset ID to attach to the post.

Platform-Specific Settings (nested collections)

  • Google My Business: Post type (Standard, Event, Offer), title, call to action type and URL, coupon code, start/end dates, terms and conditions, redeem online URL.
  • TikTok Personal & Business: Post type (video/photo), channel (direct/reminder), brand content flags, comment/duet/stitch disabled flags, privacy status.
  • Threads: Channel (direct/reminder).
  • YouTube: Post type (video/short), title, license type, privacy status, made for kids flag.
  • Facebook: Post type (post/story/reel).
  • LinkedIn: Audience (public/connections/logged in).
  • Instagram: Post type (post/story/reel), reel audio name, share to feed flag.
  • Pinterest: Pin title, link, image alt text.

Output

The node outputs JSON data representing the response from the social media service API after creating the post. This typically includes details about the created post such as IDs, status, timestamps, and any metadata returned by the service.

If media is included, it is referenced by URLs or asset IDs; binary data itself is not output by the node.

Output structure example (conceptual):

{
  "id": "post_id",
  "status": "scheduled",
  "network": "facebook",
  "account_id": "account_id",
  "message": "Post content",
  "media": ["https://example.com/image.jpg"],
  "scheduled_date": "2024-07-01 10:00"
}

Dependencies

  • Requires an API key credential for the connected social media management service.
  • The node makes HTTP requests to the service's REST API endpoints.
  • Dynamic loading of accounts depends on successful authentication and network selection.
  • Date/time inputs must be valid and parseable to avoid errors.

Troubleshooting

  • Could not load accounts: Indicates failure to fetch available social media accounts. Check API credentials and network connectivity.
  • Failed to parse date string: The schedule date provided is invalid or improperly formatted. Use a valid date-time format.
  • Execution failed: [error message]: Generic error wrapper for unexpected issues during execution. Review the detailed error message for clues.
  • Invalid or missing required parameters: Ensure all mandatory fields like network, account ID, and message are provided.
  • API rate limits or permission errors: May occur if the API key lacks necessary permissions or exceeds usage quotas.

Links and References

  • n8n Expressions Documentation
  • Social media platform developer documentation (for platform-specific post options)
  • The social media management service API docs (not publicly linked here)

Discussion