Skip to main content
Share
Guides

Instagram API With Instagram Login vs Facebook Login: Which One Your DM Bot Needs

Instagram Login needs no Facebook Page and uses graph.instagram.com with 60-day tokens. Facebook Login goes through a linked Page on graph.facebook.com and runs messaging on the Messenger Platform. This guide compares the permissions, tokens, webhooks and errors for each, and covers Unified Login, the third setup Meta now recommends.

Content & Engineering
Nov 9, 2026
11 min read
Last verified October 2026
instagram api with instagram logininstagram api with facebook logininstagram api setup with instagram logininstagram messaging apiinstagram graph api access token
TL;DR

Instagram Login needs no Facebook Page and uses graph.instagram.com with 60-day tokens. Facebook Login goes through a linked Page on graph.facebook.com and runs messaging on the Messenger Platform. This guide compares the permissions, tokens, webhooks and errors for each, and covers Unified Login, the third setup Meta now recommends.

Key Takeaways
  • Instagram Login needs no Facebook Page and uses graph.instagram.com with 60-day tokens.
  • Facebook Login goes through a linked Page on graph.facebook.com and runs messaging on the Messenger Platform.
  • This guide compares the permissions, tokens, webhooks and errors for each, and covers Unified Login, the third setup Meta now recommends.

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 LoginInstagram API with Facebook Login
Account owner signs in withInstagram credentials (Business Login for Instagram)Facebook credentials (Facebook Login for Business)
Facebook PageNot requiredRequired, linked to the Instagram account
Account typeInstagram professional account (business or creator)Instagram professional account linked to a Page
Access tokenInstagram User access tokenFacebook User or Page access token
API hostgraph.instagram.comgraph.facebook.com
Object you callInstagram professional account ID or /meFacebook Page ID or /me
Messaging permissioninstagram_business_manage_messages (plus instagram_business_basic)instagram_manage_messages (plus instagram_basic and Page permissions)
How messaging runsInstagram's own Messaging API"Supported through Messenger Platform"
Hashtag search, product tagging, partnership adsNot supportedSupported
Comment moderation, publishing, insights, mentionsSupportedSupported

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.

Try it yourself
Build your first chatbot free
Free plan, no credit card required. Live on your site in about 10 minutes.
Start building free

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_MESSAGING in the API) to the permissions instagram_basic and instagram_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 at graph.facebook.com/v26.0/oauth/access_token using 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.com with the Instagram account ID in the path. /me returns the system user, not the Instagram account. Use /me/assigned_instagram_accounts to find the IDs.
  • It uses the instagram_* permission family. The permissions page maps each instagram_business_* scope to its equivalent, for example instagram_business_manage_messages becomes instagram_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.

Instagram DM Link Generator
Free tool - no signup, runs in your browser.
Open free tool

Which one your DM bot needs

Your situationChooseWhy
One account you own, no Page, a small botInstagram LoginFewest moving parts. Standard Access is enough for accounts you own or manage.
Account already linked to a PageFacebook LoginPage tokens do not expire on a schedule, and nothing new is asked of the owner.
You also run Messenger from the same Meta appFacebook LoginSame Page, same token type, same Messenger Platform. One send path for both channels.
You need hashtag search, product tagging or partnership adsFacebook Login or Unified LoginInstagram Login does not support them.
New SaaS onboarding many client accountsUnified LoginMeta's recommended setup. Clients can sign in either way and need no Page.
Client accounts change owners or staff oftenUnified LoginThe 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_agent tag 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.challenge when hub.verify_token matches, and check the X-Hub-Signature-256 header (an HMAC-SHA256 of the body with your app secret, prefixed sha256=). 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.

ErrorMost likely pathUsual cause
190 / 190 subcode 467BothInstagram 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 460Facebook LoginThe person whose login produced the token changed their password, which invalidates the session.
100 subcode 2534013Facebook LoginInstagram account ID used where the Page ID belongs, or the Page really is not linked.
10 subcode 2534077Facebook LoginMeta cannot verify the user, Page and Instagram account chain. Usually a missing Page task or a broken link.
10BothThe token lacks the messaging permission, or holds it at Standard Access while messaging someone outside the app's roles.
200 subcode 2534041Both"Allow access to messages" is off in the Instagram app.
10 subcode 2534022BothReply 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

  1. Is the account professional? Business or creator. Personal accounts are not served by any of the three setups.
  2. 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.
  3. 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 with instagram_* plus Page permissions for Facebook Login.
  4. Match the host to the token. Instagram Login uses graph.instagram.com. The other two use graph.facebook.com.
  5. 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.
  6. Subscribe the right object. Subscribe the Instagram account for Instagram and Unified Login, and the Page for Facebook Login.
  7. 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.

Share this article:

Was this article helpful?

Ready to build your chatbot?

Join the businesses. Deploy on website, WhatsApp, and 11 more channels in minutes. Free forever plan available.

No credit cardNo coding13+ channels
Start Building Free

Get chatbot insights delivered weekly

Join 5,000+ professionals getting actionable AI chatbot strategies, industry benchmarks, and product updates.

🎯Automate this with a free chatbot

Build and deploy in 10 minutes. No coding needed.

❓FAQ

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.

🔍
Popular:

Not any more. Instagram API with Instagram Login and Instagram API with Unified Login both work with an Instagram professional account and no Facebook Page. Only Instagram API with Facebook Login requires the account to be linked to a Page. Tools that connect through the Facebook Login path, including Conferbot, do need the Page.

They are the messaging permissions for different setups. instagram_business_manage_messages belongs to Instagram API with Instagram Login and works against graph.instagram.com. instagram_manage_messages belongs to the Facebook Login and Unified Login setups and works against graph.facebook.com. A token granted one cannot be used where the other is expected.

The short-lived token lasts one hour. The long-lived token you exchange it for lasts 60 days (expires_in 5184000). You can refresh it with refresh_access_token once it is at least 24 hours old and still valid. A token that reaches 60 days without a refresh expires, and the account owner has to log in again.

A Page access token read from a long-lived User token has no expiration date, according to Meta's access token documentation. It can still be invalidated, for example by a password change or the app being removed. A Page token read from a short-lived User token only lasts about an hour, which is a common reason connections die soon after setup.

It is a third Instagram API setup, which Meta now recommends for new integrations. Clients log in with Instagram or Facebook, no Facebook Page is needed, a business portfolio is required, and the app receives a Business Integration System User Access Token that belongs to the business rather than to the person who logged in. Calls go to graph.facebook.com.

Usually your app has Standard Access, which only reaches people with a role on the app. To message customers you need Advanced Access through App Review, plus Business Verification, and the app must be in Live mode. Also check that Allow access to messages is turned on under Connected tools in the Instagram app.

Yes, but it is a migration, not a setting. The scopes, app ID, token type, host and webhook subscription target all change, so every account has to log in again through the new flow. Meta publishes migration guides, including one for moving either older setup to Unified Login.

About the Author

Content & Engineering

The Conferbot team writes about building, deploying, and improving AI chatbots.

View all articles
Skip the blank canvas
Start from one of 250+ free chatbot templates for lead generation, support, e-commerce, and 20+ industries - customize and launch in minutes.
Browse free templates

Related Articles

From the reference shelf

Fact-checked reference pages and free tools for the platform this article covers.

Omnichannel Platform

One Chatbot,
Every Channel

Your chatbot works seamlessly across WhatsApp, Messenger, Slack, and 6 more platforms. Build once, deploy everywhere.

View All Channels
Conferbot
online
Hi! How can I help you today?
I need pricing info
Conferbot
Active now
Welcome! What are you looking for?
Book a demo
Sure! Pick a time slot:
#support
Conferbot
New ticket from Sarah: "Can't access dashboard"
Auto-resolved. Password reset link sent.