u-social

Facebook and TikTok

Each platform has its own options and rules for text and media. We check them before the post is saved, so errors show up immediately rather than during publishing.

You pass a platform's options in an object named after it, in the post part of the create-post request. The object is required for every platform in the platforms list.

Example
{
  "platforms": [
    "FACEBOOK",
    "TIKTOK"
  ]
}

Facebook

We publish to Facebook Pages you manage. We do not publish to personal profiles.

The facebook object

pageIdstringrequired
Numeric Page ID, up to 32 digits.
formatenumrequired
FEED (regular post), REEL (reel) or STORY (story).

When publishing, you follow Meta's Community Standards and Pages Policies.

Example
{
  "facebook": {
    "pageId": "123456789012345",
    "format": "FEED"
  }
}
Format rules
FormatMediaText
FEEDNo media, 1–10 photos or one video. Photos and video cannot be mixed.Up to 63,206 characters. Text or media is required.
REELExactly one video, preferably vertical.Optional, up to 63,206 characters.
STORYExactly one photo or one video.Stories do not show text.

TikTok

TikTok requires media: one video or a photo carousel. The user chooses the visibility and interaction settings for each post. The API does not set them for the user.

The tiktok object

privacyLevelenumrequired
Who sees the post: PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR, SELF_ONLY. Must be one of the options available for the creator's account.
disableCommentboolean
Turns off comments. Default false.
disableDuetboolean
Turns off duets. Videos only.
disableStitchboolean
Turns off stitches. Videos only.
brandOrganicboolean
The post promotes the creator or their business. TikTok labels it as promotional content.
brandContentboolean
The post promotes another brand (paid partnership). TikTok labels it as a paid partnership. Cannot be combined with SELF_ONLY.
Example
{
  "tiktok": {
    "privacyLevel": "PUBLIC_TO_EVERYONE",
    "disableComment": false,
    "disableDuet": true,
    "disableStitch": true,
    "brandOrganic": true,
    "brandContent": false
  }
}
Content rules
TypeMediaText
VideoExactly one video (MP4, MOV).Caption up to 2,200 characters.
Photos1–35 photos, JPEG or WEBP only. Photos and video cannot be mixed.Description up to 4,000 characters.

TikTok's requirements for your interface

If you build your own TikTok publishing form on top of our API, TikTok requires that:

  • the user picks the visibility from a list, with no default value;
  • comments, duets and stitches are off by default and turned on manually;
  • the user discloses commercial content themselves (own brand or paid partnership);
  • a statement of agreement to the Music Usage Confirmation, and for paid partnerships also the Branded Content Policy, is shown before posting;
  • the user knows that TikTok may take a few minutes to process the post.