Practical guide

Connecting an Instagram page to your online store: the guide

Updatedconnect Instagram to a storeproduct APIcart linkprofessional Instagram accountDM showcase

A full connection has two parts: first connecting your Instagram page to shagerdAi, then connecting your store for the showcase and cart link. The first part is needed by everyone; the second only if you have a site or API with a product list.

This guide covers both parts with prerequisites and a test checklist. If you are not yet familiar with the showcase itself, read product showcase in DMs first.

Connecting a store catalog to DMs and the cart

Prerequisites

  • A professional Instagram account

    The page must be a Business or Creator account. A personal account cannot be connected.

  • Sign in with mobile

    You sign in to the panel with a mobile number and a verification code; there is no long form.

  • Messaging permissions

    During the connection, Instagram asks you to grant message-related permissions. Without them, DMs will not reach the panel.

Connecting the page, step by step

Each account can have up to 3 pages. To connect the next page, repeat the same steps. If the connection drops, the panel shows a “reconnect” bar, and reconnecting keeps the same conversations and settings. The access token is also renewed automatically before it expires.

  • 1. Press “Add account”

    In the panel, start the Instagram connection.

  • 2. Sign in with Instagram's official login

    The connection goes through Instagram's official login and shagerdAi does not receive the page password.

  • 3. Confirm the permissions

    After you confirm you return to the panel and the account is added automatically.

  • 4. The inbox is on

    After connecting, the inbox is active, and you turn on the other features one by one.

The store: there should be one source of products

If products and prices are kept both in the DM tool and on your site, sooner or later they drift apart. The right architecture is for your site to be the source of products and for shagerdAi to only read them.

What must your site provide?

You can hand this section to your site's developer. The minimum you need:

  • A paginated product list

    Each request returns one page of 10 products. The response must include the list of products and the total number of pages; each product has an ID, name, image and price (or price range).

  • Details of one product

    Recommended. Used for the product card before purchase.

  • Categories (optional)

    For browsing by category. The showcase's default path is the product list, and categories are not required.

  • Accepting the cart link

    A page on your site that takes the mobile number and the cart token and lets the customer continue buying. It must be on the same domain as the store.

  • Authentication

    Access to the API can be without a key, with a token or with a custom header. The keys are stored encrypted.

The customer's path after connecting

The customer opens the showcase, picks a product, shares a mobile number and gets a cart link. The cart token is valid for 20 minutes by default and is used once. Collecting the address and payment happens on your site, not in the DM.

Test these before you go live

  • Price and image

    Change a product on your site and see that the showcase shows the same, not an old copy.

  • Pagination

    Have more than 10 products and try the “Next” button.

  • The cart link

    Open the link with a test account and make sure it lands on your site and does not open again after it is used.

  • Site errors

    What happens if the API is unavailable? Before launch, test once by temporarily cutting access.

  • Mobile number

    Try a valid Iranian number (like 09xxxxxxxxx) and see that the cart link is created.

Q&A

Which kind of Instagram page can be connected?

A professional page of the Business or Creator type. A personal account cannot be connected.

Does shagerdAi take my page password?

No. The page is connected through Instagram's official login and the password is never received.

Is payment made inside Instagram?

No. The DM sends a cart link and the rest of the purchase and payment happen on your site.

Can I connect the page without a site or API?

Yes. Connecting the page is separate from connecting the store. Without a site you use the inbox, keywords and human replies.

How many pages can I connect?

Each account can have up to 3 pages and all of them draw from one wallet.

Connect your page

Start with the inbox; add the showcase and cart link once your site is ready.

Related articles

← Back to articles