AI & automation9 min readReviewed by the Softivum team,

Should an agency use a social media publishing API or build its own integrations?

Short answer

Most agencies should start with a unified publishing API behind a thin adapter of their own, and build direct integrations only for the networks where they need features the vendor lacks or where one network carries most of the volume. Either way, clients should own their accounts, your calendar and post history should sit in your own database, and switching vendors should not cost you access.

A hand moving a blue patch cable between sockets on a steel patch panel with other colored cables plugged in.

The key points

  • Building direct means a separate review, permission set, token lifecycle and upgrade cycle for every network, and the upkeep repeats every year.
  • A unified API moves that upkeep to a vendor and adds a dependency: their outages, pricing, limits and network coverage become yours.
  • Platform review does not disappear. Someone's app must be approved, and clients authorise that app, so a vendor switch means re-authorisation unless you planned for it.
  • A thin adapter, your own post store and client-owned accounts keep either route reversible.

What does building direct integrations involve?

Every network is its own project with its own gate. Four things repeat on each one: an approved app, a set of permissions or scopes, a token that expires, and a media upload protocol. None is hard alone. Across four networks they become a standing workload, because each platform changes on its own schedule.

  • Instagram: publishing needs a professional account, and Meta's content publishing documentation lists the permissions for each login type, such as instagram_content_publish. Posting is a two-step container flow: you create a media container from a public URL, then publish it, polling the container's status while Meta processes video. JPEG is the only supported image format, and the connected Page may need Page Publishing Authorization before publishing works.
  • Facebook Pages: a separate permission set, listed in the Pages API posting guide, and the person who connects must hold the right tasks on the Page. A post can be updated only by the app that created it.
  • Meta review: App Review applies as soon as anyone outside your app's own team uses it, which is every client. Meta tests the app against the permissions you request, and a submission it cannot test is rejected outright.
  • LinkedIn: the Posts API publishes to company pages through the w_organization_social permission, restricted to members with page roles such as administrator or content admin. Its documentation lists organic carousels as unsupported and document posts as supported, and it does not scrape links, so your code supplies the title, description and thumbnail for an article post.
  • LinkedIn access: the Community Management API is a vetted product. LinkedIn's review process is open to registered legal organisations for commercial use, needs a verified business email and a page super admin to verify the app, and runs in two stages: a Development tier, then a Standard tier that requires a screen recording of each use case. A rejected request means creating a new app.
  • X: the X API is billed on usage. You buy credits in the developer console and each request draws them down, so cost follows your posting and reading volume. Check X's official pricing page when you plan.
  • TikTok: a fourth network with its own developer app and approval track. Read its Content Posting API documentation before you promise a client a launch date.

What keeps costing you after the integrations ship?

Tokens come first. Instagram long-lived tokens last 60 days and must be refreshed inside that window; one that lapses cannot be refreshed and the user has to log in again (Instagram token documentation). Facebook Page tokens derived from a long-lived user token carry no expiry date but are invalidated under certain conditions (Meta long-lived token guide). LinkedIn access tokens last 60 days by default, and its programmatic refresh tokens last a year for approved partners, after which the member must authorise again; LinkedIn can also revoke either at any time.

So the build includes encrypted token storage, refresh ahead of expiry, and an alert path. When Meta returns error 190, 'access token has expired' (error codes), the system should pause that account's queue and ask the client to reconnect, not retry in a loop.

Limits differ by network and by what the limit attaches to. Meta documents separate app-level and business-use-case limits, Instagram reports each account's remaining publishing allowance through the content_publishing_limit endpoint, and LinkedIn answers 429 when you exceed its limit. Read the figures from the docs when you build instead of copying them into a plan, and put every post through a queue with backoff, so a throttle delays a post and never drops it.

Versions expire. Each Graph API version has a published expiry date on Meta's versions page. LinkedIn ships a new Marketing API version every month, supports each for at least a year and returns an error for a missing or deprecated version header. An integration nobody touches for a year stops working, so budget a maintenance pass at least annually.

Publishing also fails in pieces. A carousel goes live on Instagram while the LinkedIn call returns a 4xx, or a video is still processing when the publish call fires. You need per-network status on every post, retries for transient errors, and a human queue for the rest.

What does a unified publishing API buy, and what does it put at risk?

It buys one integration in place of four: a single request shape, one media pipeline, and a vendor who tracks version changes, token refresh and format rules. For a small team that removes most of the build and nearly all of the per-network upkeep.

It does not remove platform review. An approved app is still required, and with a vendor it is the vendor's app. That is the saving and also the lock-in: OAuth tokens belong to the app that requested them (LinkedIn's refresh call needs that app's client ID and secret), and Meta's App Review approvals apply to the app and its users. If your clients authorised the vendor's app, leaving means every connected account authorises again.

  • Outage: the vendor's incident stops your scheduled posts and you cannot patch it. Know what your queue does when their endpoint is down.
  • Pricing: your margin per client moves when their plan changes. Ask for written notice of price changes.
  • Limits: the vendor's own caps on profiles, posts and calls sit on top of each platform's.
  • Coverage: a new format reaches you when the vendor builds it, if it does. Check the vendor's network matrix against every format your clients use today, the LinkedIn carousel gap above being a typical example.
  • Custody: the vendor holds tokens and post history. Ask whether you can bring your own platform app credentials, and what you can export.

How do you keep client accounts and workflows yours either way?

Decide the exit before the first client connects, because re-authorising a dozen clients is a project and a hundred is a crisis. Softivum builds this as part of workflow automation work: the publishing layer is yours, and the vendor or the network sits behind it.

Which route fits your agency?

Client count matters less than three questions: how many networks you publish to, whether a client needs a format the vendor lacks, and whether publishing is your product or a task inside your service. The table gives the usual answer for each situation.

Softivum builds the adapter, the post store and the retry queue, and connects them to a vendor or to the networks directly; see API and AI integrations. Where a simple flow is enough, Zapier, Make or n8n can run scheduled posting with their built-in social steps, and the run-cost breakdown for automation shows what to budget for hosting, queues and monitoring.

What does a switch look like in practice?

Picture an agency with a dozen client brands publishing to Instagram, Facebook, LinkedIn and X. It starts on a unified API for all four, with a publish function in its own code that takes a post, a network and a client account. Calendar, copy, media files and returned post IDs live in the agency's database, and each client has connected a Page or profile it owns, with the agency holding a role on it.

Two quarters in, one client wants LinkedIn document posts with a custom preview, and the vendor's matrix lists documents as unavailable. The agency applies for Community Management access in its own legal entity, passes the Development tier, records the Standard tier screencast, and swaps the LinkedIn module behind the adapter. The other three networks stay on the vendor. Nothing in the calendar or the approval flow changes, and only LinkedIn clients reconnect.

The approval flow around it, from draft to client sign-off to scheduled post, is a standard first workflow to automate. Before you commission the build, scope the project by listing networks, formats, clients and who approves what.

Which route suits which agency situation

Which route suits which agency situation
Your situationRouteWhy
A few brands, two or three networks, no engineer on staffUnified API behind an adapterReview and upkeep sit with the vendor, and you launch quickly.
A dozen or more brands across four networks, steady postingUnified API now, direct for the busiest network laterVolume and feature requests show which network earns its own integration.
A client needs a format or field the vendor lacksDirect for that network, unified for the restYou stop waiting on a vendor roadmap for the feature that matters.
Publishing is the product you sell to other agenciesDirect, with your own approved appsReview, tokens and uptime are your product, so you own them.
Clients with strict terms on where credentials are storedDirect, or a vendor that accepts your app credentialsTokens stay in your environment under your contract.
Simple scheduled posts from a sheet or CMS, low volumeNo-code automation with built-in social stepsCheapest to start, and you learn which networks matter.

Build the exit plan before you sign

  1. Keep every asset in the client's name

    The client owns the Facebook Page, the Instagram professional account and the LinkedIn page. Your agency holds a role: Meta's Pages guide names the tasks the connecting person needs, and LinkedIn limits posting to page roles such as administrator and content admin. Roles can be removed without losing the asset.

  2. Own the source of truth

    Calendar, copy, media files, approval history and the post ID each network returns sit in your database. The vendor's scheduler is a delivery channel, not the record.

  3. Put one adapter between your system and the vendor

    Your code calls one internal publish function. Swapping a vendor, or going direct for one network, changes one module.

  4. Hold your own app credentials where the vendor allows it

    If the approved app and its tokens are yours, a vendor change does not force clients to reconnect. If they are the vendor's, write the re-authorisation plan now: who contacts which client, and in what order.

  5. Rehearse the switch

    Connect a test account through the new route, publish a week of dummy posts and compare statuses with the old route before any client moves.

Vendor-risk checklist before you commit

  • The client owns each connected account, and you can remove the vendor's access from the platform side
  • You can bring your own platform app credentials, or you hold a written plan to re-authorise every client
  • The contract gives notice of price changes and states what happens to scheduled posts at termination
  • A status page and a support route exist, and you have tested what your queue does during an outage
  • The vendor's network matrix covers every format you publish today, with dates for any that are missing
  • You can export post history, media references and account IDs on request
  • Your own database remains the source of truth, with the vendor behind one adapter

Sources

Rules and guidance this answer relies on. Policies change, so check the current version before acting on it.

  1. Meta for Developers: Instagram Platform, Content Publishing
  2. Meta for Developers: Pages API, Posts
  3. Meta for Developers: App Review
  4. Meta for Developers: Long-lived access tokens
  5. Microsoft Learn (LinkedIn): Posts API
  6. Microsoft Learn (LinkedIn): Community Management App Review
  7. Microsoft Learn (LinkedIn): Refresh tokens with OAuth 2.0
  8. X Developer Platform: About the X API

Questions people also ask

No. An approved app is still required, and with a vendor it is the vendor's app rather than yours. That removes the work from your side, but clients authorise the vendor's app, so moving to another provider means each account connects again.

It varies by network and token type. Instagram long-lived tokens last 60 days and must be refreshed inside that window. LinkedIn access tokens last 60 days by default. Facebook Page tokens have no fixed expiry but can be invalidated, so build refresh and reconnect alerts for all of them.

Yes, if you planned for it. Keep the calendar and post history in your own database, route every publish through one internal adapter, and keep clients as owners of their accounts. Going direct for one network then changes one module, plus a reconnection round for that network.

Want this applied to your business?

Tell us what you are planning in a free 30-minute call, or have your current website checked first with no call needed.

Get a Free 2-Minute Website Audit

Free 30 minutes · no obligation

WhatsAppCall