PhoAi Ultimate Facebook Post icon

PhoAi Ultimate Facebook Post

Node for Facebook

Overview

This node enables posting content to a Facebook Page's feed using the "Phở Ai Ultimate Facebook Post" integration. It supports multiple operations related to posting, including publishing text posts with optional attached media, uploading files as media, and posting videos. The node is useful for automating social media management tasks such as scheduling posts, sharing media content, or updating page feeds programmatically.

Typical use cases include:

  • Automatically posting updates or announcements to a Facebook Page.
  • Uploading images or videos and then creating posts that include these media items.
  • Managing multiple Facebook Pages by selecting the target page dynamically.

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 indicating this is an experimental version of the node with ongoing updates and bug fixes. Users are invited to join a group for latest information.
Facebook Page Select the Facebook Page where the post will be published. Can be chosen from a list or entered by ID. Required field.
attached_media (Shown only for the "postFeed" operation) A comma-separated list of media IDs previously uploaded via the uploadFile function, to attach media to the post.
facebook_post_content (Shown for "postFeed" and "postVideo" operations) The textual content of the Facebook post. Supports multiline input.

Output

The node outputs JSON data containing the success status and response details from the Facebook API calls. Typical output fields include:

  • success: Boolean indicating if the operation succeeded.
  • response: The raw response object returned by the Facebook API after posting or uploading.
  • list_attached_media: When posting with attached media, an array of media objects included in the post.

If binary data is involved (e.g., uploading files), the node handles the binary content internally but does not output binary data directly.

Dependencies

  • Requires an API key credential for authenticating with the Facebook API via the "PhoAiUltimatefacebookOAuth2Api" service.
  • Uses HTTP requests to interact with Facebook Graph API endpoints.
  • Utilizes the form-data library to handle multipart form uploads when posting media files.
  • Requires proper configuration of the Facebook Page access token retrieval endpoint (/get_access_token_by_page_id) on the backend service at https://api.phoai.com.

Troubleshooting

  • Common issues:

    • Invalid or expired Facebook Page access tokens causing authentication failures.
    • Incorrect Facebook Page ID or missing permissions leading to API errors.
    • Missing or improperly formatted media IDs in the attached_media property.
    • Upload failures due to network issues or invalid file data.
  • Error messages:

    • Errors during token retrieval or posting include HTTP status codes and descriptive messages from Facebook API.
    • Upload failures provide detailed error descriptions including status and response body.
  • Resolutions:

    • Ensure the Facebook Page ID is correct and the connected account has required permissions.
    • Verify the API key credential is valid and has access to the Facebook API.
    • Confirm media IDs used in attached_media were successfully uploaded beforehand.
    • Check network connectivity and retry failed uploads or posts.

Links and References

Discussion