Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 2.64 KB

InstagramAllOf.md

File metadata and controls

35 lines (28 loc) · 2.64 KB

SunshineConversationsClient::InstagramAllOf

Properties

Name Type Description Notes
type String Instagram 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 "pages_manage_metadata" (to retrieve Page Access Tokens for the Pages and apps that the app user administers and to set a webhook), "instagram_basic", and "instagram_manage_messages" (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_token String The Facebook Page Access Token of the Facebook page that is linked to your Instagram account.
app_id String Your Facebook App ID.
app_secret String Your Facebook App secret.
business_name String Your Instagram Business account name [optional] [readonly]
business_username String Your Instagram Business unique username [optional] [readonly]
page_id String The ID of the Facebook Page linked to your Instagram Business account [optional] [readonly]
business_id String The ID of the Instagram Business account [optional] [readonly]
username String The Facebook user's username. This is returned when integrating through the Dashboard [optional] [readonly]
user_id String The Facebook user's user ID. This is returned when integrating through the Dashboard [optional] [readonly]

Code Sample

require 'SunshineConversationsClient'

instance = SunshineConversationsClient::InstagramAllOf.new(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)