/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
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install facebookadvanced - 安装完成后,直接呼叫该 Skill 的名称或使用
/facebookadvanced触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Facebookadvanced 是什么?
OpenClaw skill for posting to Facebook Pages from the terminal. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 170 次。
如何安装 Facebookadvanced?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install facebookadvanced」即可一键安装,无需额外配置。
Facebookadvanced 是免费的吗?
是的,Facebookadvanced 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Facebookadvanced 支持哪些平台?
Facebookadvanced 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Facebookadvanced?
由 phuongsky(@phuongsky)开发并维护,当前版本 v1.0.4。