Facebook Poster Data
Say which Facebook page gets the post, then let SocialMan do the rest
- fb_thumbnail
- facebook_data
FacebookPosterData is where you point a Facebook post at the right page. On its own it does nothing - it builds a small data dictionary and hands it to SocialManPoster, which is the node that actually publishes. Think of the PosterData nodes as the "settings form" and SocialManPoster as the "submit" button. This one is the form for Facebook, and its single job is answering two questions: which account and what caption.
The one required input is target_account, and it's a dropdown populated from your SocialMan connection - page names come out of the socialman.json file that gets written when you set your token. Before you've done that, it shows the telltale default "Refresh or set the token" and the dropdown is empty. That's not a bug; it's the pack telling you to go get a token from mltask.com/user/comfyui and set it in the SocialManPoster UI first. After that, restart the graph if the list still looks stale.
The rest is comfort and convenience:
- caption (multiline, default "facebook caption") - the text that goes on the post.
- post_to_story (boolean, default on) - also cross-post the image or video to your Facebook Story.
- fb_thumbnail (IMAGE) - a cover image for video posts. It's saved to your output folder and uploaded as the video's thumbnail.
Its one output, facebook_data, wires straight into SocialManPoster's facebook_data input. Two gotchas are worth knowing before you hit run. First, thumbnails are video-only: when the media feeding SocialManPoster is an image, the thumbnail is silently dropped - Facebook's own video API is the only path that uses it. Second, whatever you put in the caption gets sent as-is; there's no sanitizing, so keep URLs and tags in the exact form Facebook will accept.
Mechanically, when the graph runs, this node reads your account list from socialman.json, resolves the page name you picked to its account ID, and bundles it with the caption and story flag. The heavy lifting - actually calling Facebook's API - happens on MLTask's servers via SocialManPoster, which needs both your token and a password set in its custom UI. If you see a dialog about a missing or expired token, that's the poster node complaining, not this one.
Installing it
It's part of the MLTask_ComfyUI pack - one install covers all the SocialMan nodes. ComfyUI Manager, search MLTask_ComfyUI, install, restart; or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/misterjoessef/MLTask_ComfyUI
Dependencies are minimal (requests, aiohttp). The one thing that isn't in a requirements file is your token - no token, no accounts in the dropdown, no post. The pack README links a video walkthrough of the full example workflow, which is the fastest way to see all these pieces wired together.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| target_account | COMBO | Refresh or set the token | 0 options: |
| captionopt | STRING | facebook caption | — |
| post_to_storyopt | BOOLEAN | true | — |
| fb_thumbnailopt | IMAGE | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| facebook_data | MLT_SM_FACEBOOK_DATA | — |