Facebook Page Actions icon

Facebook Page Actions

Complete Facebook API integration - Posts, Comments, Messages, Insights & More

Media → Upload Photo

AI-generated

Overview

This node integrates with the Facebook Graph API to manage media on Facebook Pages, specifically allowing users to upload photos to a selected Facebook Page. It is useful for automating the process of posting images to Facebook Pages, such as for marketing campaigns, event promotions, or regular content updates. For example, a user can upload a photo either by providing an image URL or by using binary image data from a previous node in the workflow.

Use Case Examples

  1. Uploading a promotional photo to a Facebook Page by specifying the image URL and caption.
  2. Uploading a photo stored as binary data from a previous node to a Facebook Page, optionally adding a caption and choosing whether to publish immediately or save as a draft.

Properties

Name Meaning
Page The Facebook Page to which the photo will be uploaded. This is selected from the list of pages accessible via the connected Facebook account.

Output

JSON

  • success - Indicates whether the photo upload was successful.
  • postId - The ID of the created photo post on the Facebook Page.
  • message - A message confirming the successful creation of the photo post.
  • pageId - The ID of the Facebook Page where the photo was uploaded.
  • content
    • inputType - The method used to provide the image (URL or binary data).
    • imageUrl - The URL of the image if the input type was URL.
    • caption - Optional caption text for the photo.
    • published - Boolean indicating whether the photo was published immediately or saved as a draft.

Dependencies

  • Facebook Graph API
  • An OAuth2 API key credential for Facebook

Troubleshooting

  • Ensure the Facebook OAuth2 credentials are valid and have the necessary permissions, including pages_show_list and pages_manage_posts.
  • Verify that the selected Facebook Page ID is correct and that the connected account has admin or task access to the page.
  • When using binary data input, ensure the binary property name is correct and that the binary data is a valid image format.
  • If the image URL is used, ensure it is a valid URL starting with http:// or https:// and accessible from the internet.
  • Common error messages include invalid or expired access tokens, missing permissions, or invalid input parameters. Reconnecting the Facebook account or refreshing the access token often resolves these issues.

Links

Discussion