# Instagram

Reply to Instagram comments without scrolling the feed by hand

Публикации, stories, комментарии и аналитика Instagram-аккаунта

## How the agent works with Instagram

The agent calls the Instagram Graph API on behalf of a professional account — a business or a creator: it reads the profile, the feed of posts and Reels, the comments under them, metrics for the account and for individual media, and follower geography. On top of that it calculates reach and engagement for the period you choose, compares posts against each other and shows which formats the audience watched through and which passed it by.

Publishing on Instagram is not one request but two steps: first a media container with a photo, a carousel or a Reel is assembled, and only after Instagram has processed it can the container be published. The agent holds that pause and waits for readiness instead of firing the post off blind and then dealing with the error. The second specific: the daily publishing quota is counted per account, not per app.

There are exactly two things the agent does as writes: it publishes prepared posts, Reels and carousels, and it replies to comments. Before publishing it checks how much of the daily quota is left and says so if it is already used up. Comments are sorted through first: real questions are separated from spam, and it shows what it intends to answer. It can only reply under the account's own posts — the API hands over no reply to a mention in someone else's.

The token the access rests on lives for a limited time, and the agent watches it itself: it warns ahead of the expiry instead of dropping a report in the middle of the week. Other accounts are visible only through business discovery, that is, public data of professional profiles and top media for a hashtag, with no comments and no private statistics. Instagram serves metrics with a delay of several hours and keeps them for a limited window, so a long history is assembled in pieces and the agent names the boundary beyond which there are no figures.

## Integration scenarios

### Comments with no reply
The agent collects comments under your latest posts, separates real questions from spam and answers the ones nobody has reacted to.

### Publishing a post or a Reel
The agent builds a container with a photo, a carousel or a Reel, waits for it to be ready and publishes it to the account at the time you set.

### Reach and engagement
The agent pulls account metrics for a period and for individual Reels and shows which posts landed and which passed the audience by.

### A look at someone else account
Through business discovery the agent checks a competitor public profile and finds the top media for a hashtag you name, to compare against your own.

### Where your audience lives
The agent breaks followers down by country and city and lines that geography up against the reach of recent posts, so you can see who actually reads you.

### Before the token expires
The agent watches the lifetime of the access token and warns you days ahead, before the connection stops working and reports break off mid-week.

## How to connect

**Before you connect**

- An Instagram professional account — business or creator
- A Meta business portfolio the account is linked to
- The token lives 60 days — after that reconnect the integration
- The daily per-account publishing quota not used up

### Switch the account to professional
The API works only with a professional account — business or creator. A personal one gets no token; switch the type in Instagram settings.

### Create a developer app
Go to developers.facebook.com/apps/creation/, enter a name and contact email, pick the Instagram use case and link a business portfolio.

### Grant permissions in the Instagram section
“Instagram” → “API setup with Instagram business login”. Enable instagram_business_basic; add content_publish and manage_comments for posting and replies.

### Generate the token and copy it
In the same section click “Generate token” next to the account and log in to Instagram. The token starts with IGAA and lasts 60 days.

## FAQ

### How do I connect Instagram?
With an access token: switch the account to professional, create an app at developers.facebook.com, enable the permissions you need in the Instagram section and click Generate token. The token starts with IGAA and lives for 60 days.

### What does the agent see in Instagram?
The account profile, posts and Reels, comments, metrics for the account and for individual media, follower geography, and public hashtag data.

### Does the agent write to Instagram?
It can: publish photos, Reels and carousels and reply to comments — provided the app has been granted instagram_business_content_publish and manage_comments.

### What are the publishing limits?
Instagram caps the number of posts per account per day; the agent checks the remaining limit before publishing and tells you if the quota for today is already used up.

[Open Instagram](https://developers.facebook.com/apps)
