Facebook Pages
Create posts, list content, and manage your Facebook Page.
On this page
Connect
Auth type: OAuth (oauth2). Click Connect and approve access on the provider's page. Appbricx runs the OAuth flow (signed single-use state, PKCE where the provider supports it), stores the tokens encrypted and refreshes them before they expire.
Scopes requested: pages_manage_postspages_read_engagement
OAuth needs an OAuth app: the platform's when the operator configured one, or your own (admin panel, Integrations, Configure). You can also bring your own credentials.
- In the editor: Backend panel, Integrations tab, then Connect. This connects it for the project.
- For every project in a workspace: Workspace settings, Integrations.
- Owners and admins choose which integrations members may connect in the admin panel (Integrations tab), and can attach their own OAuth app there.
Call it from a workflow
Pass the action name and its input. The call resolves with { success, output, error? }; a missing connection resolves with success false and the reason. See ctx.integrations.invoke and ctx.integrations.call.
// .workflow.js (native ctx)
export async function run(ctx) {
const res = await ctx.integrations.invoke("facebook_pages", "create_post", {
"page": "<page>",
"message": "<message>"
});
if (!res.success) throw new Error(res.error);
ctx.log.info("Facebook Pages answered", { output: res.output });
}// defineWorkflow module (@app/sdk ctx)
import { defineWorkflow } from "@app/sdk";
export default defineWorkflow({
id: "facebook-pages-create-post",
name: "Facebook Pages: Create Page Post",
description: "Calls Facebook Pages when a row is created.",
trigger: { type: "entity_event", entity: "tickets", event: "created" },
async run(ctx, event) {
const res = await ctx.integrations.call("facebook_pages", {
"action": "create_post",
"page": "<page>",
"message": "<message>"
}) as { success: boolean; error?: string };
if (!res.success) throw new Error(res.error);
},
});curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/facebook_pages/create_post" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"page":"<page>","message":"<message>"}}'Actions
create_postin catalog
Create Page Post. Create a post on a Facebook Page you manage
| Input | Type | Description |
|---|---|---|
pagerequired | id (picked from your account) | Page |
messagerequired | long text | Message |
linkoptional | text | Link |
create_photo_post
Create Page Photo. Create a photo on a Facebook Page you manage
| Input | Type | Description |
|---|---|---|
pagerequired | id (picked from your account) | Page |
photorequired | text | A URL we can access for the photo |
captionoptional | long text | Caption |
create_video_post
Create Page Video. Create a video on a Facebook Page you manage
| Input | Type | Description |
|---|---|---|
pagerequired | id (picked from your account) | Page |
videorequired | text | A URL we can access for the video (Limit: 1GB or 20 minutes) |
titleoptional | text | Title |
descriptionoptional | long text | Description |
Details
- Id
facebook_pages- Category
- Social media
- Tags
- social, facebook, pages, meta, community
- Package
@activepieces/piece-facebook-pages@0.2.3- Tier
- Built in