Social
Schedule Facebook Page posts, attach links and read post insights from OrgSDK actions using your connected Facebook account.
View 6 plugin functions ↓Use Facebook in a project
- Schedule Facebook Page posts with link attachments
- Report on post insights and reach
- List the Pages available to the connected account
- Track engagement across recent posts
Access and credentials
Post, delete, and read insights for Facebook Pages via OAuth. Posting and deleting are public, mutating actions; deletes are irreversible.
OAuth connections use your own provider application and client credentials. Configure that application in OrgSDK, review its permissions and connect the credential to your project.
Find the Pages you can manage
In Studio, open your project’s Plugins page and enable Facebook. Connect the account you want to use. Paste this example into an action in the same project.
// See which Facebook Pages are available to this connection.
return await facebook.getPages({});Use with OrgSDK
OrgSDK gives external AI clients persistent projects and controlled execution. Plugins add optional tools to those projects. Each run uses pinned plugin versions, and project configuration determines which credentials they can use.
Set up OrgSDK locally ↗Capabilities
6 functions from this published version. Read calls retrieve or process information; write actions can change data in the connected service.
6 of 6 functions
facebook.getPage
Read callGet the Facebook business page info including name, link, and follower count.
Parameters and return value
This call takes no parameters.
Returns Promise<{ id: string; name: string; link: string; fanCount?: number }>
facebook.getPages
Read callList all Facebook business pages where the authenticated user has admin access.
Parameters and return value
This call takes no parameters.
Returns Promise<Array<{ id: string; name: string; link: string; fanCount?: number }>>
facebook.createPagePost
Write actionCreate a post on the Facebook business page. Supports link attachments and scheduled publishing.
Parameters and return value
| Parameter | Type | Details |
|---|---|---|
message | string | — |
linkUrlOptional | string | — |
scheduledPublishTimeOptional | number | — |
Returns Promise<{ id: string; url: string }>
facebook.getPagePosts
Read callList recent posts on the Facebook business page with engagement metrics.
Parameters and return value
| Parameter | Type | Details |
|---|---|---|
limitOptional | number | — |
Returns Promise<Array<{ id: string; message?: string; createdTime: string; permalinkUrl: string; likes: number; comments: number; shares: number }>>
facebook.getPostInsights
Read callGet detailed insights for a Facebook page post including impressions, reach, engagement, and click metrics.
Parameters and return value
| Parameter | Type | Details |
|---|---|---|
postId | string | — |
Returns Promise<{ impressions: number; reach: number; likes: number; comments: number; shares: number; linkClicks: number; engagementRate: number }>
facebook.deletePagePost
Write actionDelete a Facebook page post. This action is irreversible.
Parameters and return value
| Parameter | Type | Details |
|---|---|---|
postId | string | — |
Returns Promise<{ success: boolean }>
