PhoAi Ultimate Facebook Post icon

PhoAi Ultimate Facebook Post

Node for Facebook

Overview

This node, named "PhoAi Ultimate Facebook Post," is designed to interact with Facebook Pages by uploading files or posting content on behalf of a selected page. It supports operations such as uploading images or videos directly to a Facebook Page and posting messages with attached media.

Common scenarios where this node is beneficial include:

  • Automating social media management by scheduling or programmatically posting content to Facebook Pages.
  • Uploading media files (images/videos) to Facebook Pages without manual intervention.
  • Integrating Facebook Page posting into broader workflows, such as marketing campaigns or content distribution pipelines.

Practical example: A marketing automation workflow that uploads promotional images to a Facebook Page and posts accompanying messages automatically when new campaign assets are ready.

Properties

Name Meaning
Đây là phiên bản Thử nghiệm Chúng tôi sẽ liên tục cập nhât và sửa lỗi.
Mời bạn truy cập https://zalo.me/g/ebsiof941 để cập nhật thông tin mới nhất
A notice informing users that this is an experimental version of the node, with ongoing updates and bug fixes. It also provides a link for the latest information and support.
Facebook Page Select the Facebook Page to operate on. Users can choose from a list of available pages or enter a page ID manually. This property is required.
Dữ liệu ảnh dạng data The name of the binary input field containing image data in binary format. This is required when performing file upload or video post operations.

Output

The node outputs an array of JSON objects corresponding to each input item processed. Each output JSON object contains:

  • success: A boolean indicating whether the operation succeeded.
  • response: The raw response from the Facebook API or related service after attempting the upload or post.
  • list_attached_media (optional): When posting content with attached media, this lists the media IDs attached to the post.

If the node uploads binary data (such as images or videos), it sends the binary content to Facebook via multipart form-data but does not output binary data itself. Instead, the output focuses on the success status and API responses.

Dependencies

  • Requires an API key credential for authenticating with the Facebook API through an OAuth2 mechanism.
  • Uses the Facebook Graph API endpoints to obtain page access tokens and perform uploads/posts.
  • Utilizes the form-data library to construct multipart form-data requests for file uploads.
  • Requires n8n HTTP Request helper methods to make authenticated API calls.
  • The node expects the user to configure appropriate credentials and permissions to manage Facebook Pages.

Troubleshooting

  • No binary data found for the specified field: This error occurs if the node expects binary data under a given field name but none is provided. Ensure the binary input field name matches the actual binary data field in the input.
  • Upload failed: Errors during upload usually include HTTP status codes and messages from Facebook. Common causes include invalid or expired access tokens, insufficient permissions, or malformed requests. Verify the Facebook Page access token validity and permissions.
  • Invalid Facebook Page ID: If the page ID is incorrect or the user lacks access, the node will fail to retrieve the access token or post content. Double-check the page selection or ID input.
  • Timeouts: Network issues or large file uploads may cause timeouts. Consider increasing timeout settings or optimizing file sizes.
  • Experimental version warnings: Since this node is marked as experimental, some features might be unstable or subject to change. Keep the node updated and monitor the linked support channel for fixes.

Links and References

Discussion