Webhooks vs. Polling for Social Platform Events

Each platform tells you about a new comment differently, and some don't tell you at all. What a unified event stream has to combine, and where each mechanism fails.

A shared inbox looks like one feature: show the comments, DMs, mentions, and reviews your customers' brands receive. Underneath, every platform tells you about new content differently, and some don't tell you at all. A unified event stream has to combine webhooks and polling per platform, and each fails in its own way.

How each platform tells you

  • Meta (Instagram, Facebook, WhatsApp) pushes webhooks through an app-level subscription. A Page only sends them once your app has pages_manage_metadata; without it the Page connects and stays silent. Instagram's comment webhook fires for new comments only: edits, deletions, and hides never arrive. Its story webhook fires when a story expires, so new stories have to be polled.
  • TikTok pushes comment, mention, and DM webhooks registered per app. Comments arrive within about five minutes; mentions run 24 to 48 hours behind.
  • LinkedIn pushes organization notifications through a subscription made per Page and per admin, and retries a failed delivery for only eight hours. Its notification for a reaction doesn't say who reacted.
  • Google Business Profile publishes review notifications to Cloud Pub/Sub rather than to a webhook, so a simple integration polls.
  • YouTube has no comment webhooks at all. Comments can only be polled, against the project's daily quota of 10,000 units.

That's five ingestion mechanisms before your product shows a single message.

Where webhooks fail

Webhooks are fast and cheap, and they fail quietly:

  • A delivery you never receive leaves no trace. If your endpoint is down longer than the platform retries (eight hours, for LinkedIn), or the platform simply doesn't send, nothing tells you a comment is missing.
  • They report less than the content can do. Instagram's comment webhook reports creation, not edits or deletions.
  • Receiving isn't processing. A webhook you accept but fail to handle is as lost as one you never got, unless you hold it until it's processed.

The first defense is to hold each verified webhook durably until its events are published, so an outage on your side doesn't lose it. The second is reconciliation: a low-frequency poll of webhook-backed collections to find what never arrived, where the platform has a list API to poll. Where a platform has no list API, as with WhatsApp, the best available signal is an alert on unusual silence.

Where polling fails

Polling sees what's there, at a cost:

  • Every poll spends quota. On your own app, the quota is yours: YouTube charges 1 unit per list call, and Google Business Profile allows 300 requests a minute per project.
  • Latency is the interval. A poll every five minutes means a comment can wait five minutes.
  • Timestamps lie at the boundary. Platforms report times to the second, so a watermark that is just a timestamp skips or repeats items that share it. A watermark has to be an instant plus the ids already seen at it.

The fix for cost is adaptive intervals. Koil shortens a profile's interval as content arrives (an exponentially weighted average of the gaps) and lengthens it 1.75 times on every empty poll, up to a ceiling per collection: about a minute or two at the fastest for DMs, five minutes for comments, longer for reviews. A busy account is polled often; a dormant one barely costs anything.

One event, whatever the source

Combining both mechanisms only works if the result doesn't care which one saw an item first. Two rules make that true:

  1. Derive the event id from the item, not from the delivery. A comment seen by webhook, then by a poll, then by a backfill produces the same id each time, so dropping duplicates is one lookup.
  2. Leave the mechanism out of the event. Whether Koil heard about a comment by webhook, polling, or backfill means nothing to your product, so it isn't in the payload.

With both, a webhook-first design with polling where a platform is silent, and backfill for history, delivers one stream your product can trust without knowing how any platform works.

How Koil's event stream works →