Xpersona
F

fboc

CLAWHUB · Unverified

CLI tool to manage Facebook Pages: list, create, read, hide, delete posts; list, create, delete comments; and get page info via the Graph API.

62
Rank
84
Safety
1.8k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.8K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17dea2bjny34c0tbhmp4rf8s584xh2a:facebook-openclaw
  1. Install using `clawhub skill install s17dea2bjny34c0tbhmp4rf8s584xh2a:facebook-openclaw` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/phuongsky/facebook-openclaw before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-phuongsky-facebook-openclaw/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

56,081 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

skill.md

# Facebook Advanced Skill

A comprehensive CLI tool for managing Facebook Pages and posts via the Graph API.

## Installation

This skill is installed as an npm package. After cloning or installing:

```bash
# Set your Facebook Page Access Token
$env:FB_PAGE_ACCESS_TOKEN = "your_page_access_token_here"

# Make the script executable (if needed)
# On Windows, PowerShell scripts may need execution policy adjustment
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
```

## Setup

1. **Get a Page Access Token:**
   - Go to [Facebook Developers](https://developers.facebook.com/)
   - Create an app or use an existing one
   - Use Graph API Explorer to generate a token with `pages_manage_posts`, `pages_read_engagement`, and `pages_show_list` permissions
   - Or use your existing Page Access Token

**Option A: Using facebook-config.json (Recommended)**

Edit `facebook-config.json` in this directory:
```json
{
  "FB_PAGE_ACCESS_TOKEN": "FB_PAGE_ACCESS_TOKEN",
  "FB_APP_ID": "(OPTIONAL) YOUR_APP_ID_HERE",
  "FB_APP_SECRET": "(OPTIONAL) YOUR_APP_SECRET_HERE",
  "description": "Replace the placeholder values with your actual Facebook credentials. Never commit this file with real secrets to version control."
}
```
**Option B: Using environment variable**

**Set the environment variable:**
   ```powershell
   $env:FB_PAGE_ACCESS_TOKEN = "your_token_here"
   ```

## Usage

### Main CLI
```powershell
facebook-advanced
```

### Available Commands

#### List Posts
```powershell
facebook-advanced fb-post-list <page_id> [--fields fields] [--limit N]
```
- `--fields`: Comma-separated list of fields (default: message,created_time,id,permalink_url,full_picture,likes.summary(true),comments.summary(true))
- `--limit`: Number of posts to retrieve (default: 25)

#### Create Post
```powershell
facebook-advanced fb-post-create <page_id> --message "Your message" [--link "https://example.com"]
```

#### Read Post
```powershell
facebook-advanced fb-post-read <post_id>
```

#### Hide Post
```powershell
facebook-advanced fb-post-hide <post_id>
```
Note: Hiding is recommended over deletion as it's reversible.

#### Delete Post
```powershell
facebook-advanced fb-post-delete <post_id> [--force]
```
Warning: This permanently deletes the post. Use `--force` to skip confirmation.

#### List Comments
```powershell
facebook-advanced fb-comment-list <post_id> [--limit N]
```

#### Create Comment
```powershell
facebook-advanced fb-comment-create <post_id> --message "Your comment"
```

#### Delete Comment
```powershell
facebook-advanced fb-comment-delete <comment_id> [--force]
```

#### Page Info
```powershell
facebook-advanced fb-page-info <page_id>
```

## Examples

```powershell
# Set token
$env:FB_PAGE_ACCESS_TOKEN = "EAABwzLixnjYBO..."

# List recent posts
facebook-advanced fb-post-list 123456789 --limit 10

# Create a new post
facebook-advanced fb-post-create 123456789 --message "Hello from OpenClaw!"

# Create a post with a link
facebook-advanced fb-post-create 123456789 --message "

readme.md

# Facebook Advanced (fboc)

A CLI tool for managing Facebook Pages and posts via the Graph API.

## Quick Start

### 1. Configure your access token

**Option A: Using facebook-config.json (Recommended)**

Edit `facebook-config.json` in this directory:
```json
{
  "FB_PAGE_ACCESS_TOKEN": "FB_PAGE_ACCESS_TOKEN",
  "FB_APP_ID": "(OPTIONAL) YOUR_APP_ID_HERE",
  "FB_APP_SECRET": "(OPTIONAL) YOUR_APP_SECRET_HERE",
  "description": "Replace the placeholder values with your actual Facebook credentials. Never commit this file with real secrets to version control."
}
```

**Option B: Using environment variable**

```powershell
$env:FB_PAGE_ACCESS_TOKEN = "your_page_access_token_here"
```

For permanent storage with environment variable, add to your PowerShell profile:

```powershell
# Edit your profile
notepad $PROFILE

# Add this line:
$env:FB_PAGE_ACCESS_TOKEN = "your_page_access_token_here"
```

### 2. Get a Page Access Token

1. Go to [Facebook Developers](https://developers.facebook.com/)
2. Create an app or use existing
3. Use Graph API Explorer to generate token with:
   - `pages_manage_posts`
   - `pages_read_engagement`
   - `pages_show_list`

### 3. Run the CLI

```powershell
facebook-advanced --help
```

## Commands

### List Posts

```powershell
facebook-advanced fb-post-list <page_id> [--limit 25] [--fields fields]
```

Example:
```powershell
facebook-advanced fb-post-list 123456789 --limit 10
```

### Create Post

```powershell
facebook-advanced fb-post-create <page_id> --message "Your message" [--link "https://example.com"]
```

Example:
```powershell
facebook-advanced fb-post-create 123456789 --message "Hello Facebook!" --link "https://example.com"
```

### List Comments

```powershell
facebook-advanced fb-comment-list <post_id> [--limit 25]
```

### Create Comment

```powershell
facebook-advanced fb-comment-create <post_id> --message "Your comment"
```

## Options

- `--message` - Post/comment text content
- `--link` - URL to share with post
- `--picture` - Image file path for post
- `--limit` - Number of items (default: 25)
- `--fields` - Comma-separated fields to retrieve
- `--help` - Show help message

## Environment Variables

| Variable | Required | Description |
|----------|----------|-------------|
| `FB_PAGE_ACCESS_TOKEN` | Yes | Your Facebook Page Access Token |
| `FB_APP_ID` | No | Your Facebook App ID |
| `FB_APP_SECRET` | No | Your Facebook App Secret |

## Cron Jobs (openclaw)
```cron
# Cron Jobs UI
- New Job
`Assistant task prompt *` 
Example:
```
facebook-advanced fb-post-list 123456789 --limit 10
```
- Add job

# Terminal

openclaw cron add \
  --name "Job Name" \
  --cron "cron expression" \
  --tz "America/New_York" \     # US timezone (Eastern Time)
  --session isolated \          # Recommended to use isolated to avoid polluting main context
  --message "facebook-advanced fb-post-list 123456789 --limit 10" \
  --announce                    # (optional) Send notification after completion

# CLI 
```powershell
```
openclaw

_meta.json

{
  "ownerId": "kn73bspw3jzar8cnmr3qjamg1984x9my",
  "slug": "facebook-openclaw",
  "version": "1.0.2",
  "publishedAt": 1778059838737
}

skill-card.md

## Description:

fboc helps agents manage Facebook Pages through CLI commands for listing, creating, scheduling, hiding, and deleting posts and comments via the Facebook Graph API.

This skill is ready for commercial/non-commercial use.

## Publisher:

[phuongsky](https://clawhub.ai/user/phuongsky)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and operators use this skill to let an agent configure Facebook Page credentials, test access, and manage Page content from terminal workflows. It is suited to publishing, scheduling, reviewing, hiding, or deleting Facebook Page posts when the operator has approved credentials and content changes.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can publish, schedule, hide, or delete live Facebook Page content.

Mitigation: Use a test Page first, manually review commands before execution, and require explicit confirmation for destructive actions.

Risk: The skill requires a Facebook Page token with permissions that can modify Page content.

Mitigation: Use least-privilege Page tokens, avoid pasting tokens into chats or shell history, store credentials securely, and rotate any token used with this version.

Risk: Automated test or cron examples can affect a production Page if run with production credentials.

Mitigation: Run tests and scheduled jobs only against reviewed Page IDs and tokens, and avoid production cron jobs without manual approval.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/phuongsky/skills/facebook-openclaw)
- [Facebook Graph API Documentation](https://developers.facebook.com/docs/graph-api)
- [Facebook Pages API](https://developers.facebook.com/docs/graph-api/reference/page)
- [Facebook Page Posts API](https://developers.facebook.com/docs/graph-api/reference/page/posts)
- [Facebook Post Comments API](https://developers.facebook.com/docs/graph-api/reference/post/comments)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration, guidance]

**Output Format:** [Markdown and terminal-oriented command guidance]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May produce Facebook Graph API actions that modify live Page content when executed with valid Page credentials.]

## Skill Version(s):

1.0.2 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

allowlist.json

{
  "allowlist": [
    "openclaw fb-post-setup",
    "openclaw fb-post-setup-help",
    "openclaw fb-post-test",
    "openclaw fb-post",
    "openclaw fb-post-image",
    "openclaw fb-post-schedule",
    "openclaw fb-post-schedule-list",
    "openclaw fb-post-schedule-delete",
    "openclaw fb-post-drafts",
    "openclaw fb-post-delete",
    "facebook-advanced fb-post-list",
    "facebook-advanced fb-post-schedule",
    "facebook-advanced fb-post-schedule-list",
    "facebook-advanced fb-post-schedule-delete",
    "facebook-advanced fb-post-drafts",
    "facebook-advanced fb-post-delete"
  ],
  "description": "Allowlist for facebook-posting skill commands"
}

Sponsored

Ads related to fboc and adjacent AI workflows.