Facebook Poster

Đăng bài lên Facebook sử dụng Facebook Poster API

Overview

This node enables posting content to Facebook using a custom Facebook Poster API. It supports posting text messages, single photos, and multiple photos either to a personal profile or a Facebook page. The node is useful for automating social media updates, marketing campaigns, or managing multiple Facebook accounts/pages programmatically.

For the Post Text operation specifically, it allows you to publish a text post with optional privacy settings (for profiles) and an optional link attachment. This can be used to share announcements, status updates, or links directly from your workflow.

Practical examples:

  • Automatically post daily motivational quotes to your personal Facebook profile.
  • Share blog post links on a Facebook page with a custom message.
  • Schedule promotional posts with specific privacy settings for targeted audiences.

Properties

Name Meaning
Message The text content of the Facebook post.
Target Type Where to post: either on a personal Profile or a Facebook Page.
Target The User ID (for profile) or Page ID where the post will be published.
Privacy Privacy setting for the post (only applicable when posting to a profile): Public, Friends, or Only Me.
Link Optional URL to attach to the post alongside the message.

Output

The node outputs JSON data representing the response from the Facebook Poster API after attempting to create the post. The structure typically includes details about the created post such as its ID, status, or any returned metadata.

If an error occurs during the operation, the output JSON will contain an error field describing the issue and a success flag set to false.

No binary data output is produced by the Post Text operation.

Dependencies

  • Requires access to a Facebook Poster API endpoint (defaulting to http://localhost:3000 if not configured).
  • Requires credentials containing an API key or token to authenticate requests to the Facebook Poster API.
  • Uses HTTP POST requests with JSON payloads to communicate with the API.
  • The node depends on the axios library for HTTP requests.

Troubleshooting

  • Common issues:

    • Incorrect or missing target ID (User ID or Page ID) will cause the API to reject the post request.
    • Invalid or expired API credentials will result in authentication errors.
    • Network connectivity problems to the Facebook Poster API endpoint.
    • Posting to a profile with an unsupported privacy setting may cause errors.
  • Error messages:

    • Errors thrown during execution include descriptive messages from the API or network layer.
    • If continueOnFail is enabled, errors are returned in the output JSON under the error field.
    • Otherwise, the node throws an operation error indicating which step failed and why.
  • Resolutions:

    • Verify that the target ID corresponds to a valid Facebook user or page.
    • Ensure the API credentials are correctly configured and have necessary permissions.
    • Confirm the Facebook Poster API service is running and accessible at the configured URL.
    • Use supported privacy options only when posting to profiles.

Links and References


Note: This summary is based solely on static analysis of the provided source code and property definitions without runtime execution.

Discussion