Questo documento è stato aggiornato.
La traduzione in Italiano non è ancora completa.
Aggiornamento inglese: 27 feb
Aggiornamento Italiano: 5 ago 2024

Instagram Messaging with the Messenger Platform

Il 23 luglio 2024 abbiamo lanciato la nuova API Instagram con Instagram Login. Un account Instagram per professionisti, business o creator, non dovrà più essere collegato a una Pagina Facebook per avere conversazioni con clienti, follower o utenti Instagram interessati alla sua azienda o al suo account Instagram, gestire i commenti o pubblicare contenuti multimediali. Scopri di più su questa nuova versione nel nostro post sul blog.

Consulta la nostra API Instagram con Instagram Login per saperne di più.

The Messenger Platform allows you to build messaging solutions for Instagram Professional accounts at scale.

Instagram Messaging is available for the following accounts:

  • Any Instagram Professional account for a business
  • Any Instagram Professional account for a Creator

You can check the eligibility for accounts that you manage using the Conversations API . A 36103 error code will be returned if the messaging is not yet available.

Common Uses

  • Get messages that have been sent to your Instagram Professional Inbox from customers
  • Receive and respond to customer messages with text, media, stories, and more
  • Send a private reply to a person who published a public post on your Instagram
  • Send a private reply to a person who published a comment on your Instagram post

How It Works

The Messenger Platform allows you to have conversations with people interested in your business or creations. The Facebook Page linked to your Instagram Professional account facilitates these conversations using the Messenger Platform. When a person sends your Instagram a message, the message will be delivered to your Instagram Inbox and a webhook notification will be sent to your server. Your messaging app has 24 hours to respond to this message. If more time is needed to allow a human agent to respond, you can add a tag to your response to send the message outside the standard 24 hour messaging window.

Instagram Messaging offers a wide variety of conversation entry points for people to start a conversation and message types for your messaging app to respond with.

Instagram Inbox

An Instagram Professional account has a messaging inbox that allows you to control notifications and organize messages. By default notifications are off. You can turn notifications on in the Inbox Settings. The inbox is organized into different categories, Primary, General, and Requests. By default, all new conversations from followers will appear in the Primary folder. Conversations that existed before you implemented Instagram Messaging will be in the folders you have placed them within.

Messages that you receive from people who are not followers of your account are in Requests folder. You can choose to accept or deny these requests, and request messages aren’t marked as Seen until you accept them. Once a request is accepted you can move the conversation to the Primary or General folder. All message requests that you answer using a third-party app will be moved to the General folder.

Inbox Limitations

  • If you reply to a message using a third-party app, the conversation will be moved to the General folder regardless of your Setting configuration
  • Inbox folders are not supported and messages delivered by the Messenger Platform do not include folder information that is shown in the Instagram from Meta app inbox folder
  • Webhooks notifications or messages delivered via the API will not be considered as Read in the Instagram app inbox. Only after a reply is sent will a message be considered Read.

Business Login for Instagram

Beginning November 9, 2022, we are introducing Business Login for Instagram. This login flow allows a person to convert their Instagram account to an Instagram Professional account, create a Facebook Page for their business, and to connect that Page to their Instagram Professional account within the login flow.

Requirements

Questa guida presuppone che tu abbia letto la Panoramica sulla piattaforma Messenger e implementato i componenti necessari per l'invio e la ricezione di messaggi e notifiche.

  • The Instagram Graph API – This API allows businesses and Creators to manage their presence on Instagram using your app
  • The following permissions:
    • instagram_basic
    • instagram_manage_messages
    • pages_manage_metadata
    • pages_showlist
    • business_management
  • Delete messages when you receive a webhooks notification to do so, in accordance with Meta Platform Terms

Automated Experiences

You can provide an escalation path for automated messaging experiences using one of the following:

  • A Single App – You can create a custom inbox to receive or reply to messages from a person. This custom inbox is powered by the same messaging app that also provides the automated experience
  • Multiple AppsHandover Protocol allows you pass the conversation from one app or inbox to another. For example, one app would handle the conversation with an automated experience and, when needed, would pass the conversation to another app to continue the conversation with a human agent.

Comunicazione agli utenti sull'impiego di esperienze automatizzate

Quando richiesto dalla legge applicabile, le esperienze di chat automatica devono indicare all'utente che sta interagendo con un servizio automatizzato:

  • all'inizio di qualsiasi conversazione o thread di messaggi;
  • dopo un periodo di tempo significativo;
  • quando una chat si sposta dall'interazione umana all'esperienza automatizzata.

Le esperienze di chat automatica appartenenti ai seguenti gruppi devono prestare particolare attenzione a questo requisito:

  • Mercato o utenti californiani
  • Mercato o utenti tedeschi

Le informative, includono, a titolo esemplificativo ma non esaustivo: "Sono il bot di [Nome della Pagina]", "Stai interagendo con un'esperienza automatizzata", "Stai parlando con un bot" o "Sono un bot di chat automatica".

Anche nel caso in cui non sia richiesto per legge, consigliamo di informare sempre gli utenti quando interagiscono con una chat automatica; in questo modo è più semplice gestire le aspettative degli utenti sull'interazione con la tua esperienza di messaggistica.

Per maggiori informazioni, consulta le Normative per gli sviluppatori.

Human Agent Only

You can provide an escalation path for human agent only messaging experiences with a custom inbox. Your messaging app must be able to:

  • receive messages sent by people and render them correctly in the custom inbox
  • reply to messages via the custom inbox and ensure people successfully received them

Limitations

  • An Instagram Professional account can only converse with one customer per conversation. Group messaging is not supported
  • Conversations in the Requests folder that have not been active for 30 days will not be returned in API calls
  • Only the URL for the shared media or post is included in the webhooks notification when a customer sends a message with a share
  • An Instagram Professional account for a Creator must send an API request using the Instagram Conversations API before the account can receive webhooks

Testing Limitations

  • Apps with Standard Access can only interact people who have a role on the app
  • Some features may not work properly until your app has been granted Advanced Access
  • People testing your app must have a role on your app, grant access to all the required permissions, and have a role on the Instagram Professional account

Next Steps

See Also