Facebook Poster

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

Overview

This node, named Facebook Poster, enables posting content to Facebook using a dedicated Facebook Poster API. It supports posting text, single photos, and multiple photos either to a personal profile or a Facebook page. This is useful for automating social media management tasks such as scheduling posts, sharing images with captions, or bulk uploading photo albums.

Practical examples:

  • Automatically post a status update with a message on your personal Facebook profile.
  • Upload a single photo with a caption to a Facebook page you manage.
  • Post multiple photos as an album with a shared caption to a Facebook page or profile.

Properties

Name Meaning
Target Type Choose where to post: "Profile" (personal timeline) or "Page" (Facebook page).
Target The User ID or Page ID where the post will be published.
Image The name of the binary property containing the image file to upload (required for photo).
Caption Text description or caption for the photo(s).

Output

The node outputs JSON data representing the response from the Facebook Poster API after attempting the post operation. The structure depends on the API response but generally includes details about the posted content or error information if the operation failed.

If posting photos, the node uploads binary image data from the specified binary property but does not output binary data itself.

Dependencies

  • Requires connection to a Facebook Poster API endpoint, configured via credentials that provide the API URL and authentication token.
  • The API URL defaults to http://localhost:3000 if not specified in credentials.
  • Uses HTTP requests (via axios) to communicate with the API.
  • Requires binary data input for photo uploads, so the workflow must provide image files in binary format under the specified property names.

Troubleshooting

  • Common issues:

    • Missing or incorrect binary property name for images will cause failures when posting photos.
    • Invalid or missing target ID (User ID or Page ID) will prevent successful posting.
    • Network or authentication errors connecting to the Facebook Poster API.
  • Error messages:

    • Errors during execution include messages like Lỗi khi thực hiện operation postPhoto: <error message>.
    • If continueOnFail is enabled, errors are returned in the output JSON under an error field instead of stopping the workflow.
  • Resolutions:

    • Ensure the binary property name matches exactly the name of the binary data in the input.
    • Verify the target ID is correct and accessible by the authenticated user.
    • Check API credentials and network connectivity to the Facebook Poster API server.

Links and References

Discussion