FreeSocialv1.0.0

Facebook (Pages) v1

Create and list Facebook Page posts using the Facebook Graph API. OAuth/token handling is external to the skill; provide a Page access token.

Published bySai KoSai Ko
Sign in to rate

How to install

Point your Sulala Agent at this store, then install this skill.

  1. Set the registry URL (e.g. in .env):
SKILLS_REGISTRY_URL=https://hub.sulala.ai/api/sulalahub/registry

Then run: sulala skill install facebook or install from the dashboard Skills page. This installs the latest version (currently v1.0.0); you can pin a specific version in your skill config if needed.

Skill files

README.md

---
name: Facebook (Pages) v1
description: Create and list Facebook Page posts using the Facebook Graph API. OAuth/token handling is external to the skill; provide a Page access token.
credentials:
  - FACEBOOK_PAGE_ACCESS_TOKEN
  - FACEBOOK_PAGE_ID
metadata:
  sulala:
    emoji: "📣"
    requires:
      bins:
        - node
---

# Facebook (Pages) — Create & List Posts (v1)

This skill targets **Facebook Pages** (Graph API). For Groups or personal profiles, auth/permissions differ.

## When to use

- Create a Facebook Page post (text + optional link)
- List recent posts from the Page

## Setup

1. Create a Facebook App and configure Graph API permissions for Page access.
2. Use Facebook Graph API Explorer to retrieve the numeric Page ID:
Open: [Facebook Graph API](https://developers.facebook.com/tools/explorer)
Make sure you select an Access Token that can access the page (Page access token with Page permissions).
Run this query:
GET /me/accounts?fields=id,name
In the results, find your page and copy the id value.

3. Paste into the dashboard:
   - `FACEBOOK_PAGE_ACCESS_TOKEN`
   - `FACEBOOK_PAGE_ID`

## Create post (exec)

Run the script via exec:

```json
{
  "skill_id": "facebook",
  "command": "node scripts/facebook_create_post.js 'Hello from Sulala' 'https://example.com'"
}
```

- Arguments:
  - text: required
  - link: optional (pass empty string "" if you don't want a link)

## List posts (exec)

```json
{
  "skill_id": "facebook",
  "command": "node scripts/facebook_list_posts.js 10"
}
```

- `limit` optional (default 10)

## Scripts

- `scripts/facebook_create_post.js`
- `scripts/facebook_list_posts.js`

Comments

Sign in to leave a comment.

Loading comments…