/install facebookadvanced
Facebook Page Posting Skill
A command-line skill for posting to Facebook Pages via the Graph API.
Overview
This skill provides CLI commands to:
- Post text and images to Facebook Pages
- Schedule posts for later publication
- Manage scheduled posts
- Test connections and verify credentials
Installation
The skill is installed as an npm package:
npm install -g clawhub
clawhub install facebookadvanced
cd .\facebook-advanced
npm install
npm link
Or run directly from the workspace:
node C:\Users\OS\.openclaw\workspace\skills\facebook-advanced\index.js \x3Ccommand>
Usage
OPTIONAL - create facebook-config.json in the same directory as the skill:
{
"page_id": "",
"access_token":"",
"page_name": "",
}
Setup
First, configure your Facebook Page credentials:
openclaw-facebook-posting fb-post-setup \x3Cpage_id> \x3Caccess_token> [page_name]
Getting a Page Access Token:
- Go to Facebook Developer Console
- Create an app (if needed)
- Add "Graph API" product
- Generate a Page Access Token with permissions:
pages_manage_posts- Create and manage postspages_read_engagement- Read page content
Posting
Text Post:
openclaw-facebook-posting fb-post "Your message here"
Image Post:
openclaw-facebook-posting fb-post-image "Caption" "https://example.com/image.jpg"
Scheduling
Schedule a Post:
openclaw-facebook-posting fb-post-schedule "Tomorrow's post!" "2024-04-20T10:00:00Z"
List Scheduled Posts:
openclaw-facebook-posting fb-post-schedule-list
Delete Scheduled Post:
openclaw-facebook-posting fb-post-schedule-delete \x3Cpost_id>
Testing
Test Connection:
openclaw-facebook-posting fb-post-test
Show Configuration:
openclaw-facebook-posting fb-config-show
Help
openclaw-facebook-posting --help
Configuration
Configuration is stored in:
C:\Users\OS\.openclaw\workspace\facebook-config.json
Security Note: This file contains your access token. Keep it secure.
Commands Reference
| Command | Description |
|---|---|
fb-post-setup |
Configure Facebook Page credentials |
fb-post |
Post text to your Page |
fb-post-image |
Post image with caption |
fb-post-schedule |
Schedule a post for later |
fb-post-schedule-list |
List scheduled posts |
fb-post-schedule-delete |
Delete a scheduled post |
fb-post-test |
Test connection and permissions |
fb-config-show |
Show current configuration |
--help |
Show help message |
Troubleshooting
Common Issues
Invalid Access Token:
- Token expired. Generate a new one and re-run setup.
- Check token permissions.
Page Not Found:
- Verify page_id is correct.
- Ensure token has access to the page.
Permission Denied:
- Token needs
pages_manage_postspermission. - Re-generate token with correct permissions.
API References
Security Considerations
- Access tokens are stored in plain text in the config file
- Do not share your config file
- Revoke tokens when no longer needed
- Use environment variables for sensitive data in production
Development
Project Structure
example-posting/
├── index.js # Main CLI entry point
├── package.json # npm package config
├── README.md # User documentation
├── SKILL.md # Skill documentation
├── commands/
│ ├── setup.js # Configuration setup
│ ├── post.js # Text posting
│ ├── post-image.js # Image posting
│ ├── post-schedule.js # Schedule posts
│ ├── post-schedule-list.js # List scheduled posts
│ ├── post-schedule-delete.js # Delete scheduled posts
│ ├── post-test.js # Connection testing
│ ├── config-show.js # Show configuration
│ └── help.js # Help message
└── facebook-config.json # User configuration (created on setup)
Adding New Commands
- Create a new file in
commands/directory - Export a function that handles the command logic
- Add the command to
index.jscommands mapping - Update
help.jswith documentation
Testing
# Test connection
node commands/post-test.js
# Test specific command
node commands/post.js "Test message"
License
MIT
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install facebookadvanced - After installation, invoke the skill by name or use
/facebookadvanced - Provide required inputs per the skill's parameter spec and get structured output
What is Facebookadvanced?
OpenClaw skill for posting to Facebook Pages from the terminal. It is an AI Agent Skill for Claude Code / OpenClaw, with 170 downloads so far.
How do I install Facebookadvanced?
Run "/install facebookadvanced" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Facebookadvanced free?
Yes, Facebookadvanced is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Facebookadvanced support?
Facebookadvanced is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Facebookadvanced?
It is built and maintained by phuongsky (@phuongsky); the current version is v1.0.4.