profileSetup
Give a Facebook account its profile picture and cover photo with `log facebook profile setup`. Dry run first to read the profile page and check its controls from the recording, then --live when the ow
SKILL.mdskills/profileSetup/SKILL.md
GitHubprofileSetup
A new account gets a real-looking profile photo and a cover photo on days 1-2 of its warm-up. This does that for one account, both photos in one run (the owner's choice).
Hard boundaries
- Dry run first,
--liveonly when the owner asks (rule 8). Over MCP,--liveisfacebookProfileLive, withconfirmLive: true. - Read before clicking (rule 25). The upload clicks in
python/session/profileSession.pywere written before the page was seen. The dry run writes every button, link and file input the profile page has toprofileFound.txt; check the patterns (PROFILE_PICTURE,COVER,UPLOAD,SAVE) against it, and fix them, before the first--live. - Only the two photos change. With
profileNameset, the dry run also reads the name page (nameFound.txt); the rename itself is built from an inspect recording first (rule 29). Bio and every other field stay read-only. - It is a launch (rule 35): it counts against the 8 a day, 10 minutes
apart, and needs waking hours, the proxy gate and a saved
session (
log facebook connectfirst). - Run it live (rule 26): through Monitor, every machine state prints.
The routine
Put the photos on the account's row in the local account store:
socialAccounts.profilePhoto(a real-looking face, not a logo) andcoverPhoto(business-related is fine), each a URL or a local path. URLs are fetched through the account's proxy, never from this machine, and every file is varied so its bytes are new (media/photo).Look first (rule 29):
log inspect start --account <a> --url https://www.facebook.com/me, thenlog inspect do snapshot(skills/inspect). The upload clicks come from that.Dry run:
log facebook profile setup --account <a> 2>&1 | tee <log>It prints each photo as
would upload,no photo set in the account storeorno control for it on the page, and the run folder (~/.logCli/runs/profile/<time>_<a>/).Read
profileFound.txtin that folder and the step HARs (firefox/steps/). If the picture or cover control isn't the one the patterns match, fix the pattern inpython/session/profileSession.pyand its test, commit, and dry run again after the launch gap.When the owner says go:
--live. The machine uploads the profile photo, then the cover; any failed step stops the run (nothing is retried on Facebook). A failed step saves<item>Failed.txtwith what the page had. On successprofileSetAtis set on the account's row.Rebuild the Facebook client docs: the profile requests are new.
log capture docs
Codes
| Code | Means | Do |
|---|---|---|
profilePhotoMissing |
--live without both photos, or a photo that can't be read |
Set both fields on the account's row |
profileControlNotFound |
No opener, no "Upload photo" item, no file input | Read profileFound.txt / <item>Failed.txt, fix the pattern |
profileUploadNotSaved |
Save never enabled, or the dialog stayed open | Read the capture; run again after the gap |
sessionExpired |
The profile wasn't signed in | log facebook connect --account <a> first |