SunshineConversationsClient::Instagram

August 27, 2025 · View on GitHub

Properties

NameTypeDescriptionNotes
default_responder_idStringThe default responder ID for the integration. This is the ID of the responder that will be used to send messages to the user. For more information, refer to the <a href=&quot;https://developer.zendesk.com/documentation/conversations/messaging-platform/programmable-conversations/switchboard/#default-integration-assignment\&quot;&gt;Switchboard guide</a>.[optional]
default_responderDefaultResponderDefaultResponder[optional]
typeStringInstagram Direct setup steps: - Take note of your Facebook app ID and secret (apps can be created at developer.facebook.com); - The Facebook app must have been submitted to Meta for app review with the &quot;pages_manage_metadata&quot; (to retrieve Page Access Tokens for the Pages and apps that the app user administers and to set a webhook), &quot;instagram_basic&quot;, and &quot;instagram_manage_messages&quot; (to retrieve basic Instagram account information and send messages) permissions. - In order to integrate an Instagram Direct app, you must acquire a Page Access Token from your user. Once you have acquired a page access token from your user, call the Create Integration endpoint with your app secret and ID and the user’s page access token.[optional][default to 'instagram']
page_access_tokenStringThe Facebook Page Access Token of the Facebook page that is linked to your Instagram account.
app_idStringYour Facebook App ID.
app_secretStringYour Facebook App secret.
business_nameStringYour Instagram Business account name[optional][readonly]
business_usernameStringYour Instagram Business unique username[optional][readonly]
page_idStringThe ID of the Facebook Page linked to your Instagram Business account[optional][readonly]
business_idStringThe ID of the Instagram Business account[optional][readonly]
usernameStringThe Facebook user's username. This is returned when integrating through the Dashboard[optional][readonly]
user_idStringThe Facebook user's user ID. This is returned when integrating through the Dashboard[optional][readonly]

Example

require 'sunshine-conversations-client'

instance = SunshineConversationsClient::Instagram.new(
  default_responder_id: null,
  default_responder: null,
  type: null,
  page_access_token: your_page_access_token,
  app_id: your_facebook_app_id,
  app_secret: your_facebook_app_secret,
  business_name: instagram_name,
  business_username: instagram_username,
  page_id: 106731941223392,
  business_id: 17841444303043201,
  username: facebook_username,
  user_id: 100885965124932
)