Facebook, Instagram & Threads icon

Facebook, Instagram & Threads

Create and publish content to Facebook, Instagram, and Threads

Overview

This node enables creating and publishing content specifically to Facebook, Instagram, and Threads platforms via their APIs. For the Facebook resource, it supports multiple post types including text, photo, video, and link posts. The "Create Link Post" operation allows users to share a URL on a Facebook Page, Group, or User Profile with an optional accompanying message.

Common scenarios include:

  • Automatically sharing blog posts or news articles as link posts on a company’s Facebook Page.
  • Posting promotional links to Facebook Groups for marketing purposes.
  • Sharing interesting URLs on a user profile (where permitted).

Practical example:

  • A marketing automation workflow that fetches new product announcements from an RSS feed and posts them as link posts with custom messages to a Facebook Page.

Properties

Name Meaning
Target Type Where to publish the content. Options: "Page" (post to a Facebook Page), "Group" (post to a Facebook Group), "User Profile" (post to user profile; limited availability).
Target ID The unique identifier of the Facebook Page, Group, or User Profile where the post will be published. This is required.
Link URL The URL to share in the link post. This is required.
Link Message Optional message to accompany the shared link.

Output

The node outputs JSON data representing the response from the Facebook Graph API after attempting to create the link post. Typically, this includes identifiers and metadata about the created post.

Example output structure (simplified):

{
  "id": "1234567890123456_7890123456789012"
}

Where id is the unique identifier of the newly created Facebook post.

No binary data output is produced by this operation.

Dependencies

  • Requires an API authentication credential configured in n8n that grants access to the Facebook Graph API.
  • The node uses the Facebook Graph API v23.0 endpoint (https://graph.facebook.com/v23.0).
  • Proper permissions/scopes must be granted to the API token to allow posting to Pages, Groups, or User Profiles.
  • The user must provide valid Target IDs corresponding to the Facebook entity they want to post to.

Troubleshooting

  • Common issues:

    • Invalid or missing Target ID: Ensure the Target ID corresponds to a valid Facebook Page, Group, or User Profile accessible by the authenticated user.
    • Insufficient permissions: The API token must have the necessary permissions to post content on the specified target.
    • Posting to User Profile may be restricted or unavailable depending on Facebook API policies.
    • Network or API errors due to rate limits or invalid requests.
  • Error messages:

    • Errors returned from the Facebook API are captured and presented with details such as error type, message, code, and trace ID.
    • If the node is set to continue on fail, errors are included in the output JSON under error and errorDetails.
    • To resolve errors, verify credentials, permissions, and input parameters like Target ID and Link URL.

Links and References

Discussion