Menu

Comment "LINK" to get it in DMs: how Instagram auto-replies actually work under the hood
πŸ“°

Comment "LINK" to get it in DMs: how Instagram auto-replies actually work under the hood

DEV Community: backendΒ·Shubham Dhar DwivediΒ·2 days ago
#wCjnemFl
#devtobackend#devto#dev#comment#reply
Long article (498 words) β€” no AI summary yet.
Reading 0:00
15s threshold

You've seen these posts everywhere on Instagram. A creator says "comment LINK and I'll send it to you" and a few seconds later there's a DM sitting in your inbox.

I used to think there was some guy with three phones doing this manually. There isn't. I ended up building this exact feature for my own product, so here's what's actually going on behind it, minus the marketing fluff.

It's not a bot clicking buttons

The old way people did this was with sketchy tools that logged into your account and pretended to be you. That's how accounts get flagged.

The legit way is Meta's official Instagram API. It only works with Business or Creator accounts linked to a Facebook Page, and every permission has to be approved by Meta. No passwords shared anywhere.

The flow, step by step

Someone comments on your post. Instagram fires a webhook to your server with the comment text, the comment ID and the post ID.

Your server checks for a keyword. Something as simple as: does this comment contain "link", "price" or "info"?…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.