App Logo
facebook.com

Post to Facebook group

Publish a post to a Facebook group, optionally with a photo (imageUrl fetched in-page, or imageBase64). Works on discussion and buy/sell groups. Returns posted, photoAttached, and verified — the post is looked up on the group's "your content" page after publishing, so verified:false flags posts held for admin approval. dryRun arms the composer without publishing.

Input

groupId required

Numeric id or vanity slug from a group URL (the part after /groups/). You must be a member / allowed to post; some groups hold posts for admin approval.

message required

Plain-text post body.

dryRun optional

When true, open the composer, type the message (and attach the photo if given) but DO NOT submit. Returns posted:false, dryRun:true once the publish control is confirmed enabled.

Default: false
imageUrl optional

Optional photo to attach, fetched from this URL inside the page. The host must be reachable from facebook.com (CSP/CORS) — fbcdn.net image URLs work; for arbitrary images prefer imageBase64.

imageBase64 optional

Optional photo to attach, as raw base64 bytes of a JPEG/PNG (no data: prefix). Ignored when imageUrl is set.

requireProfile optional

When true, refuse to post if the session is switched to a Page identity (i_user cookie present) — the post would be authored by the Page, and membership/your-content surfaces reflect the Page, not the profile.

Default: false
skipDuplicateCheck optional

Skip the pre-post duplicate guard (the group's my_posted_content page is normally checked for this message first; if already there the script returns alreadyPosted:true without posting).

Default: false

Output

name optional
dryRun optional

true when the run stopped before submitting because the dryRun arg was set.

posted optional

true once the composer dialog closed after submit. false in dryRun and when alreadyPosted.

groupId optional
verified optional

true when the message was found on the group's my_posted_content page right after publishing. false can mean the post is held for admin approval.

alreadyPosted optional

true when the duplicate guard found this exact message already on the group's my_posted_content page — nothing was posted.

photoAttached optional

true when the photo registered in the composer (blob preview seen) before submit.

Start building not clicking