This Skill calls an existing CLI. No proxy is configured by default; the browser connects directly through the system network. When the network environment requires a proxy, explicitly pass --proxy or set SAU_FACEBOOK_PROXY. Pass --proxy "" to ignore environment variables and connect directly.
sau facebook login --account creator
sau facebook check --account creator
sau facebook upload-video --account creator --file videos/demo.mp4 --title "标题" --desc "正文" --tags 生活,分享
sau facebook upload-note --account creator --images images/1.jpg images/2.jpg --title "图文标题" --note "正文"
During login, complete sign-in in a visible Chrome window; the account is saved as cookies/facebook_creator.json。check to verify the personal profile login state; it does not represent Page permissions or post publishing results. Title, body, and tags are merged into a single caption. Currently only immediate publishing is supported; personal profile scheduling is not integrated; Pages use the separate facebook-page command.
After obtaining the original work link, manage the work:
sau facebook verify --account creator --post-url "原作品链接" --owner-id "作者数字ID" --expected-text "原作品正文"
sau facebook delete --account creator --post-url "原作品链接" --owner-id "作者数字ID" --expected-text "原作品正文" --result .local/trash-result.json
sau facebook delete --account creator --post-url "原作品链接" --owner-id "作者数字ID" --expected-text "原作品正文" --from-trash --permanent --result .local/delete-result.json
Before deleting, verify the logged-in user, author, original work ID, and body at the same time. By default it is moved to the trash, and the platform deletes it after 30 days, returning trashed; add --permanent to permanently delete immediately; if it is already in the trash, additionally add --from-trash. Permanent deletion cannot be undone.
verify --from-trash queries the original record in the trash;verify --deleted only confirms that the ID is not in the trash, returning absent_from_trash, and absence alone cannot prove that a permanent deletion occurred in the past. Currently only recent works within a limited scroll range are retrieved; if nothing is found or the same caption cannot be uniquely located, it fails explicitly.
A post is considered confirmed only when the platform shows a success prompt for this submission. A timeout after clicking or a browser disconnect should be treated as an unknown result: first check the personal profile or trash under the same account for the original work, and do not re-upload or re-delete. Local assets will not be deleted. For complete parameters, refer to sau facebook upload-video --help、upload-note --help、verify --help and delete --help .
Example Scripts
scripts/examples/ The files under are examples for copying, not runtime dependencies. Before executing, first check the current CLI's --help, and replace the account, assets, and body; these commands may create real works.
facebook_commands.ps1:PowerShellfacebook_commands.sh:Bashfacebook_cli_template.py:Python subprocess