Facebook Page Actions icon

Facebook Page Actions

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

Post → Create Photo Post

AI-generated

Overview

This node allows users to create a photo post on a Facebook Page using the Facebook Graph API. It supports posting photos either by providing an image URL or by using binary image data from a previous node. Users can optionally add a caption to the photo and choose whether to publish the photo immediately or save it as a draft. This node is useful for automating social media content publishing, such as scheduling marketing campaigns or sharing images programmatically on Facebook Pages.

Use Case Examples

  1. A marketing team automates posting promotional images to their Facebook Page by providing image URLs and captions.
  2. A workflow processes images and sends them as binary data to this node to create photo posts without needing to upload images manually.

Properties

Name Meaning
Page The Facebook Page where the photo post will be created. This is selected from the pages accessible by the connected Facebook account.
Input Type Determines how the image for the photo post is provided, either via an image URL or binary data from a previous node.
Image URL The URL of the image to post. Required if 'Input Type' is set to 'Image URL'.
Binary Property The name of the binary property containing the image data. Required if 'Input Type' is set to 'Binary Data'.
Caption An optional caption text to accompany the photo post.
Published A boolean flag indicating whether to publish the photo immediately (true) or save it as a draft (false).

Output

JSON

  • success - Indicates if the photo post creation was successful.
  • postId - The ID of the created photo post on Facebook.
  • message - A message confirming the successful creation of the photo post.
  • pageId - The ID of the Facebook Page where the photo was posted.
  • content
    • inputType - The input type used for the image ('url' or 'binary').
    • imageUrl - The image URL used if the input type was 'url'.
    • caption - The caption text provided for the photo post.
    • published - Indicates whether the photo was published immediately or saved as a draft.

Dependencies

  • Facebook Graph API

Troubleshooting

  • Ensure the Facebook OAuth2 credentials are valid and have the necessary permissions to post on the selected Facebook Page.
  • If using binary data, verify that the binary property name matches the actual binary data property from the previous node.
  • Check that the image URL is accessible and valid if using the URL input type.
  • Common error messages include missing access tokens, invalid tokens, or insufficient permissions. Reconnecting the Facebook account or refreshing credentials usually resolves these issues.

Links

Discussion