infipostdocs
Provider settings

Facebook Settings

Provider settings for Facebook posts

Overview

Facebook integration allows you to post to Facebook pages. You can optionally include a link URL in your posts.

Settings Schema

json
{
  "__type": "facebook",
  "url": "https://example.com/my-article",
  "post_type": "post"
}

Properties

PropertyTypeRequiredDescription
__typestring✅Must be "facebook"
urlstring❌Optional link URL to include in the post
post_typestring❌post (default) or story
text_format_preset_idstring❌Background preset for a text-only post
titlestring❌Title of the video, used only for video posts
made_with_aiboolean❌Label the post as AI-generated. Text, link and photo posts only

post_type

ValueDescription
postA normal Page post. This is the default
storyA Facebook story. Requires at least one attachment, and each attachment publishes as its own story

text_format_preset_id

Facebook lets a short text-only post render on a coloured or illustrated background. Pass the preset ID to use one.

Constraints, all enforced by Facebook rather than Infipost:

  • Text only. A post with media ignores the preset.
  • Pages only.
  • 130 characters maximum. Longer text drops the background.

Facebook publishes no API to enumerate the presets, so Infipost ships a fixed catalogue of them. Pick one in the app to find the ID you want, then reuse that ID over the API.

title

Sets the title of the published video. It applies only to a post whose first attachment is an mp4 video, and is ignored for stories, photo posts and text-only posts.

made_with_ai

When set to true, Infipost adds Facebook's AI-generated disclosure to the post. Facebook accepts the disclosure only as an edit of a published post, so Infipost sets it right after the post goes live.

  • Text, link and photo posts only. Facebook offers no AI disclosure for the video posts and stories Infipost publishes, so the setting is ignored for them.
  • Best effort. If Facebook rejects the disclosure, the post stays published without it.

Examples

Simple text post

json
{
  "type": "now",
  "date": "2024-12-14T10:00:00.000Z",
  "shortLink": false,
  "tags": [],
  "posts": [
    {
      "integration": {
        "id": "your-facebook-integration-id"
      },
      "value": [
        {
          "content": "Check out our latest updates! 🎉",
          "image": []
        }
      ],
      "settings": {
        "__type": "facebook"
      }
    }
  ]
}

Post with link

json
{
  "type": "schedule",
  "date": "2024-12-14T10:00:00.000Z",
  "shortLink": false,
  "tags": [],
  "posts": [
    {
      "integration": {
        "id": "your-facebook-integration-id"
      },
      "value": [
        {
          "content": "We just published a new blog post about social media automation!",
          "image": []
        }
      ],
      "settings": {
        "__type": "facebook",
        "url": "https://example.com/blog/social-media-automation"
      }
    }
  ]
}

Post with image

json
{
  "type": "schedule",
  "date": "2024-12-14T10:00:00.000Z",
  "shortLink": false,
  "tags": [],
  "posts": [
    {
      "integration": {
        "id": "your-facebook-integration-id"
      },
      "value": [
        {
          "content": "Beautiful sunset from our office! 🌅",
          "image": [
            {
              "id": "img-123",
              "path": "https://uploads.postiz.com/sunset.jpg"
            }
          ]
        }
      ],
      "settings": {
        "__type": "facebook"
      }
    }
  ]
}

Video post with title

json
{
  "type": "schedule",
  "date": "2024-12-14T10:00:00.000Z",
  "shortLink": false,
  "tags": [],
  "posts": [
    {
      "integration": {
        "id": "your-facebook-integration-id"
      },
      "value": [
        {
          "content": "Behind the scenes of our product launch 🎬",
          "image": [
            {
              "id": "vid-123",
              "path": "https://uploads.postiz.com/launch.mp4"
            }
          ]
        }
      ],
      "settings": {
        "__type": "facebook",
        "title": "Product launch: behind the scenes"
      }
    }
  ]
}

Notes

  • The url field is optional and creates a link preview in the post
  • If posting with images, Facebook will display them as attachments
  • Video uploads are also supported