Nodes/MLTask_ComfyUI/Instagram Poster Data
ComfyUI Node

Instagram Poster Data

Pick the IG account and caption, and let the pack handle the posting

By misterjoessef·Created 2 years ago·Updated 2 years ago· 1
Instagram Poster Data
  • insta_thumbnail
  • instagram_data
target_accountRefresh or set the token
captioninstagram caption
post_to_storytrue

InstagramPosterData is the settings form for Instagram in the MLTask/SocialMan pack: you tell it which account and what caption, and it hands SocialManPoster everything needed to publish your generation to your feed. It's a data-bag node - zero network calls of its own. All the Instagram API magic happens on MLTask's servers once the poster node fires.

The required input is target_account, a dropdown that's populated from your connected SocialMan accounts. It reads out of socialman.json, which only exists after you've set a token in SocialManPoster. See the default text "Refresh or set the token"? That's the pack politely telling you the list is empty because there's no token yet. Grab one at mltask.com/user/comfyui, set it in the poster node, and the account names appear. If the list doesn't update, re-queue or restart - the enum is built when the node's inputs are constructed.

Beyond that it's three knobs:

  • caption (multiline, default "instagram caption") - the post text, hashtags and all.
  • post_to_story (boolean, default on) - also push the media to your Instagram Story. It's on by default, which is one of those small things that will surprise you if you only wanted a feed post - check it if you're not aiming at stories.
  • insta_thumbnail (IMAGE) - a cover image for video posts, saved to your output folder and uploaded with the video.

Output is a single instagram_data value that plugs into SocialManPoster's instagram_data input. Same rule as the Facebook sibling: the thumbnail only counts for video. When the media is an image, the node's data still carries the thumbnail path, but the poster strips it before upload - Instagram's image path doesn't use covers. So don't spend time generating a thumbnail if you're only posting stills.

One thing to note about the account picker: this node asks you to choose an account because the SocialMan backend can hold several Instagram logins. If you only ever post to one, the dropdown is a one-choice no-op, but it's still required - you can't skip it. Everything downstream still hinges on SocialManPoster: no token, no password set in its UI, no post. Errors about expired tokens or "not subscribed" come from that node, not this one.

Installing it

Part of the MLTask_ComfyUI pack, installable once for all the SocialMan nodes. ComfyUI Manager: search MLTask_ComfyUI, install, restart. Manual route:

cd ComfyUI/custom_nodes
git clone https://github.com/misterjoessef/MLTask_ComfyUI

Light dependencies (requests, aiohttp), nothing else to download - the actual requirement is a SocialMan token and, for real publishing, a subscription. The pack README's linked video tutorial walks the whole example workflow, and it's the fastest way to see the account dropdowns come alive.

CategoryMLTask/SocialMan

Inputs (4)

NameTypeDefaultDescription
target_accountCOMBORefresh or set the token0 options:
captionoptSTRINGinstagram caption
post_to_storyoptBOOLEANtrue
insta_thumbnailoptIMAGE

Outputs (1)

NameTypeDescription
instagram_dataMLT_SM_INSTAGRAM_DATA