The short answer: one needs a Facebook Page, one does not
Meta offers two ways to build an Instagram DM bot: Instagram API with Facebook Login, which needs a linked Facebook Page, and Instagram API with Instagram Login, which works with a Professional account and no Page. The permissions, tokens and webhook setup differ, so choose before you build.
That is still the right frame for most teams, with one update you should know about before you write code. As of October 2026, Meta's Instagram Platform overview lists three setups, not two. The third, Instagram API with Unified Login, lets the account owner sign in with either Instagram or Facebook, needs no Page, and is the one Meta now labels "recommended for new integrations". Meta's Unified Login page adds that "New Instagram API features are released only for this setup." We cover it below, but most existing bots, tutorials and libraries still run on one of the original two, and that is the choice most people are actually searching for.
If you only want the decision:
- The account has no Facebook Page and you want the simplest possible login: Instagram Login.
- The account is already linked to a Page, or you also run Messenger on the same Meta app: Facebook Login.
- You are starting a new multi-client integration in 2027: read the Unified Login section before you commit to either.
Whichever you choose, every one of them only lets you message people who wrote to the account first, inside the same messaging window. The login choice changes the plumbing, not the rules of the conversation.
Instagram Login vs Facebook Login, side by side
Every row below comes from Meta's own comparison table in the Instagram Platform overview and the per-setup guides, checked on 25 October 2026.
| Instagram API with Instagram Login | Instagram API with Facebook Login | |
|---|---|---|
| Account owner signs in with | Instagram credentials (Business Login for Instagram) | Facebook credentials (Facebook Login for Business) |
| Facebook Page | Not required | Required, linked to the Instagram account |
| Account type | Instagram professional account (business or creator) | Instagram professional account linked to a Page |
| Access token | Instagram User access token | Facebook User or Page access token |
| API host | graph.instagram.com | graph.facebook.com |
| Object you call | Instagram professional account ID or /me | Facebook Page ID or /me |
| Messaging permission | instagram_business_manage_messages (plus instagram_business_basic) | instagram_manage_messages (plus instagram_basic and Page permissions) |
| How messaging runs | Instagram's own Messaging API | "Supported through Messenger Platform" |
| Hashtag search, product tagging, partnership ads | Not supported | Supported |
| Comment moderation, publishing, insights, mentions | Supported | Supported |
Two rows matter more than the rest for a DM bot. The host row means the two setups are not interchangeable at the HTTP level: an Instagram User token sent to graph.facebook.com, or a Page token sent to graph.instagram.com, is simply the wrong credential for that host. And the permissions row means the two families have different names. If you copy a scope list from a Facebook Login tutorial into an Instagram Login app, or the other way round, the consent screen will not grant what your code expects.
A historical note that still trips people up: Instagram Login launched on 23 July 2024, and its first scope values were business_basic, business_manage_messages and so on. Meta replaced them with the instagram_business_* names, and the changelog says the old values "will be deprecated on January 27, 2025". Any tutorial that still uses the short names predates that change.
Path 1: Instagram API with Instagram Login
This is the path for an account that has never been linked to a Facebook Page, or whose owner does not want one. The flow is a standard OAuth code exchange against Instagram's own endpoints, all documented in Business Login for Instagram.
1. Send the account owner to Instagram's consent screen
https://www.instagram.com/oauth/authorize
?client_id=<INSTAGRAM_APP_ID>
&redirect_uri=<YOUR_REDIRECT_URI>
&response_type=code
&scope=instagram_business_basic,instagram_business_manage_messages
Use the Instagram app ID shown under Instagram > API setup with Instagram login in the App Dashboard, not the Meta app ID at the top of the dashboard. Meta's overview is explicit that the two login types use different app IDs, and mixing them up is a common first failure.
2. Exchange the code within the hour
The authorization code "is valid for 1 hour and can only be used once". Exchange it server-side with a POST to https://api.instagram.com/oauth/access_token, passing client_id, client_secret, grant_type=authorization_code, redirect_uri and code. You get a short-lived token, which the access token reference says expires in one hour.
3. Swap it for a long-lived token, and schedule the refresh
GET https://graph.instagram.com/access_token
?grant_type=ig_exchange_token
&client_secret=<INSTAGRAM_APP_SECRET>
&access_token=<SHORT_LIVED_TOKEN>
The response carries "expires_in": 5184000, which is 60 days. This is the operational cost of Instagram Login: the token must be refreshed with GET https://graph.instagram.com/refresh_access_token?grant_type=ig_refresh_token, and Meta's rules are that the token must be "at least 24 hours old", unexpired, and that the user granted instagram_business_basic. A token you forget to refresh for 60 days expires and cannot be refreshed. The account owner has to log in again. Put the refresh on a schedule (every few weeks is plenty) and alert when one fails.
4. Subscribe the account to webhooks
Configure the callback URL and verify token in the App Dashboard, then subscribe the account itself, per Set up Instagram Webhooks:
curl -i -X POST \
"https://graph.instagram.com/v26.0/<INSTAGRAM_ACCOUNT_ID>/subscribed_apps
?subscribed_fields=messages,messaging_postbacks
&access_token=<INSTAGRAM_USER_ACCESS_TOKEN>"
The messaging fields available are messages, messaging_optins, messaging_postbacks, messaging_reactions, messaging_referrals and messaging_seen, per the Instagram Login messaging guide.
5. Reply
Send with POST /<IG_ID>/messages (or /me/messages) on graph.instagram.com, with recipient: {id: <IGSID>}, where the IGSID is the Instagram-scoped ID that arrived in the webhook. Meta's current examples use v26.0.
Path 2: Instagram API with Facebook Login
This is the older route, and still the one most production DM bots use. The Instagram account is reached through the Facebook Page it is linked to, and messaging runs on the Messenger Platform. Meta's Instagram Messaging overview puts it this way: "The Facebook Page linked to your Instagram Professional account facilitates these conversations."
What you need before you start
- An Instagram professional account linked to a Facebook Page.
- A person who can perform the right task on that Page. Meta's overview maps the Page task called Messages (
PROFILE_PLUS_MESSAGINGin the API) to the permissionsinstagram_basicandinstagram_manage_messages. Someone without that task can log in and still not be able to grant messaging. - A Meta app with Facebook Login for Business, the Messenger product (which holds the Instagram messaging settings) and the Instagram product's "API setup with Facebook login".
The token chain
The account owner logs in with Facebook. You exchange their short-lived User token for a long-lived one, then read the Page's own token from GET /me/accounts. That last step is the advantage of this path: Meta's long-lived token guide says a Page access token generated from a long-lived User token does "not have an expiration date and only expire or are invalidated under certain conditions", such as a password change or the app being removed. There is no 60-day refresh job to run.
The trap is skipping the long-lived exchange. A Page token read with a short-lived User token inherits that short life, so the connection works for about an hour and then fails with an expired-token error. The fix is always the same: exchange first, then read the Page token.
Webhooks and sending
Subscribe the Page, not the Instagram account:
curl -i -X POST \
"https://graph.facebook.com/v26.0/<FACEBOOK_PAGE_ID>/subscribed_apps
?subscribed_fields=<WEBHOOK_FIELDS>
&access_token=<FACEBOOK_PAGE_ACCESS_TOKEN>"
Then send with a Page access token to the Page's messages edge on graph.facebook.com. Meta's Send a Message guide lists the prerequisites: the Page ID, the recipient's IGSID, a Page access token and instagram_manage_messages. The single most common bug on this path is using the Instagram account ID where the Page ID belongs. The call fails with "Page is not linked to an Instagram account" (error 100, subcode 2534013) even though the accounts are linked, because you sent the wrong ID.
The third option: Instagram API with Unified Login
If you are building something new, Meta now steers you here. According to the Unified Login documentation:
- The account owner logs in with Instagram or Facebook. One login flow covers both.
- No Facebook Page is required, but a business portfolio is.
- It is built on Facebook Login for Business. You create a configuration in the App Dashboard, get a
config_id, and the login returns a code you exchange atgraph.facebook.com/v26.0/oauth/access_tokenusing your Meta app ID and secret, not the Instagram ones. - The token is a Business Integration System User Access Token. Meta's authentication page says it "belongs to your client's business portfolio, not to the person who logged in" and "keeps working if that person leaves the business". Whether it expires depends on the configuration you create.
- Calls go to
graph.facebook.comwith the Instagram account ID in the path./mereturns the system user, not the Instagram account. Use/me/assigned_instagram_accountsto find the IDs. - It uses the
instagram_*permission family. The permissions page maps eachinstagram_business_*scope to its equivalent, for exampleinstagram_business_manage_messagesbecomesinstagram_manage_messages.
Two practical notes. First, Meta's webhook setup guide is blunt: "Instagram User access tokens and graph.instagram.com don't work with the Instagram API with Unified Login." It is a different setup, not a superset you can drop existing tokens into. Second, Meta publishes a migration guide from both older setups, which tells you the older two are not going away tomorrow but that new features will land here first. If you maintain a bot that works today, there is no deadline in Meta's docs forcing a move, so plan it, but do not panic.
Which one your DM bot needs
| Your situation | Choose | Why |
|---|---|---|
| One account you own, no Page, a small bot | Instagram Login | Fewest moving parts. Standard Access is enough for accounts you own or manage. |
| Account already linked to a Page | Facebook Login | Page tokens do not expire on a schedule, and nothing new is asked of the owner. |
| You also run Messenger from the same Meta app | Facebook Login | Same Page, same token type, same Messenger Platform. One send path for both channels. |
| You need hashtag search, product tagging or partnership ads | Facebook Login or Unified Login | Instagram Login does not support them. |
| New SaaS onboarding many client accounts | Unified Login | Meta's recommended setup. Clients can sign in either way and need no Page. |
| Client accounts change owners or staff often | Unified Login | The token belongs to the business portfolio, not the person who clicked Connect. |
One thing that does not separate them: messaging capability. All three can send and receive Instagram DMs, and the messaging rules below apply to every one of them. Pick on login friction, token lifecycle and which other Meta products you use, not on what the bot can say.
What stays the same whichever login you pick
These rules come from the Instagram messaging documentation and apply to every setup. They are behind most "my bot works in testing but not for customers" reports.
- The customer writes first. Per the messaging guide, your app can message an Instagram user only after that person has messaged the account. "For most user actions, it lasts 24 hours", and a first message after a Click-to-Direct ad can open a window of up to 7 days. Reply outside the window and you get error 10, subcode 2534022.
- Human Agent gives humans 7 days. The
human_agenttag lets a person reply up to 7 days after the user's message. Meta's overview limits it to human support where the issue "cannot be resolved in the standard messaging window". It is not for automated follow-ups. - Standard Access only reaches people with a role on your app. To serve accounts you do not own or manage, you need Advanced Access, which means App Review and Business Verification. Until then, your own test account gets replies and your customers do not. That gap shows up as error 200 in the Development-mode case.
- The app must be Live to receive webhooks for app users, per the webhook setup guide.
- The owner must allow access to messages. In the Instagram app, Instagram's help centre puts the setting under Messages and story replies > Message controls > Connected tools > Allow access to messages. If it is off, third-party apps cannot read or send. The API form of that failure is error 200, subcode 2534041.
- No group chats, and stale requests disappear. "Group messaging is not supported", and conversations in the Requests folder that have been inactive for 30 days "will not be returned in API calls".
- Disclose the bot where the law requires it. Meta calls out California and Germany by name and gives sample wording such as "You are talking to a bot".
- Verify every webhook. Echo
hub.challengewhenhub.verify_tokenmatches, and check theX-Hub-Signature-256header (an HMAC-SHA256 of the body with your app secret, prefixedsha256=). Meta retries failed deliveries "over the next 36 hours", so deduplicate.
Rate limits, media sizes, private-reply rules and story-reply behaviour are collected on our Instagram API limits page.
The errors each path produces
Most setup failures are the wrong token, the wrong ID or the wrong host. Here is where each one usually comes from. Every code links to its full entry in our Instagram API error reference.
| Error | Most likely path | Usual cause |
|---|---|---|
| 190 / 190 subcode 467 | Both | Instagram Login: the 60-day token was never refreshed. Facebook Login: the Page token was read from a short-lived User token, or the user removed the app. |
| 190 subcode 460 | Facebook Login | The person whose login produced the token changed their password, which invalidates the session. |
| 100 subcode 2534013 | Facebook Login | Instagram account ID used where the Page ID belongs, or the Page really is not linked. |
| 10 subcode 2534077 | Facebook Login | Meta cannot verify the user, Page and Instagram account chain. Usually a missing Page task or a broken link. |
| 10 | Both | The token lacks the messaging permission, or holds it at Standard Access while messaging someone outside the app's roles. |
| 200 subcode 2534041 | Both | "Allow access to messages" is off in the Instagram app. |
| 10 subcode 2534022 | Both | Reply sent outside the messaging window. |
One failure has no error code: the wrong host. If a token works in the Graph API Explorer and fails in your code, compare the host in your client with the setup you chose. The Instagram Login token belongs on graph.instagram.com. Facebook Login and Unified Login tokens belong on graph.facebook.com. For symptoms that are not a clean error (webhooks that stop arriving, replies that send but never show), work through Instagram Messaging API not working.
How Conferbot connects Instagram, and why
We get asked which path we use, so here it is plainly. Conferbot's Instagram integration connects through the Facebook Page path, Meta's Instagram API with Facebook Login. That means your Instagram professional account must be linked to a Facebook Page you manage. If yours is not, link it in the Page's settings before you connect. That takes a few minutes and costs nothing.
The reasons are the ones in the table above. The Page path gives a Page access token that does not expire on a 60-day clock, so there is no refresh job that can silently fail and take your bot offline. It also uses the same Messenger Platform send path as our Messenger channel, so Instagram and Facebook conversations behave the same way in one inbox. The cost is the Page requirement, and we would rather state it here than have you find out at the connect screen.
Instagram is rolling out in Conferbot, so it may still show as coming soon in your dashboard. We do not currently connect through Instagram Login or Unified Login. If your business cannot link a Page, those paths and the steps above are how you would build it yourself.
Once connected, the bot is built in the no-code chatbot builder, can answer with AI from your own content, and hands off to a human in the shared inbox on every plan, including the Free plan (600 conversations a month, 2 bots). The same bot can also run on Messenger, WhatsApp and your website. Comment-triggered DMs are not supported yet; for what the bot can start from today (DM keywords, story replies and ig.me links), see our guide to Instagram DM automation.
Before you build: a five-minute checklist
- Is the account professional? Business or creator. Personal accounts are not served by any of the three setups.
- Is there a Facebook Page, and do you want to use it? Yes: Facebook Login. No: Instagram Login, or Unified Login for a new multi-client product.
- Match the app ID and scope family to the setup. Use the Instagram app ID with
instagram_business_*for Instagram Login. Use the Meta app ID withinstagram_*plus Page permissions for Facebook Login. - Match the host to the token. Instagram Login uses
graph.instagram.com. The other two usegraph.facebook.com. - Plan the token lifecycle. For Instagram Login, schedule the refresh before day 60. For Facebook Login, exchange for a long-lived User token before reading the Page token. For Unified Login, check the expiry set in your configuration.
- Subscribe the right object. Subscribe the Instagram account for Instagram and Unified Login, and the Page for Facebook Login.
- Before launch: get Advanced Access through App Review, complete Business Verification, set the app to Live, and confirm "Allow access to messages" is on.
Get those seven right and the login choice is settled for good. What's left is conversation design.
Was this article helpful?
Build and deploy in 10 minutes. No coding needed.
Instagram API With Instagram Login vs Facebook Login FAQ
Everything you need to know about chatbots for instagram api with instagram login vs facebook login.
About the Author
The Conferbot team writes about building, deploying, and improving AI chatbots.
View all articlesRelated Articles
From the reference shelf
Fact-checked reference pages and free tools for the platform this article covers.