Instagram Business
Create posts, list media, and manage your Instagram Business profile.
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: instagram_basicinstagram_content_publish
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("instagram_business", "upload_photo", {
"page": "<page>",
"photo": "<photo>"
});
if (!res.success) throw new Error(res.error);
ctx.log.info("Instagram Business answered", { output: res.output });
}// defineWorkflow module (@app/sdk ctx)
import { defineWorkflow } from "@app/sdk";
export default defineWorkflow({
id: "instagram-business-upload-photo",
name: "Instagram Business: Upload Photo",
description: "Calls Instagram Business when a row is created.",
trigger: { type: "entity_event", entity: "tickets", event: "created" },
async run(ctx, event) {
const res = await ctx.integrations.call("instagram_business", {
"action": "upload_photo",
"page": "<page>",
"photo": "<photo>"
}) as { success: boolean; error?: string };
if (!res.success) throw new Error(res.error);
},
});curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/instagram_business/upload_photo" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"page":"<page>","photo":"<photo>"}}'Actions
upload_photoin catalog
Upload Photo. Upload a photo to an Instagram Professional Account
| Input | Type | Description |
|---|---|---|
pagerequired | id (picked from your account) | Page |
photorequired | text | A URL we can access for the photo (JPG only) |
captionoptional | long text | Caption |
upload_reelin catalog
Upload Reel. Upload a reel to an Instagram Professional Account
| Input | Type | Description |
|---|---|---|
pagerequired | id (picked from your account) | Page |
videorequired | text | A URL we can access for the video (Limit: 1GB or 15 minutes) |
captionoptional | long text | Caption |
Details
- Id
instagram_business- Category
- Social media
- Tags
- social, photos, stories, instagram, meta
- Package
@activepieces/piece-instagram-business@0.2.3- Tier
- Built in