Skip to content

Business account

Ramtin Jokar edited this page Oct 8, 2018 · 4 revisions

InstagramApiSharp supports Business accounts.

You can find all business functions in IInstaApi.BusinessProcessor.

How can I get my business account information?

var businessAccountInformation = await InstaApi.BusinessProcessor
    .GetBusinessAccountInformationAsync();

How can I get my account statistics?

var statistics = await InstaApi.BusinessProcessor.GetStatisticsAsync();

How can I get my promotable medias?

var promotableMedias = await InstaApi.BusinessProcessor.GetPromotableMediaFeedsAsync();

How can I get insights for single media?

var insights = await InstaApi.BusinessProcessor.GetMediaInsightsAsync("MEDIA PK");

Note: You should pass InstaMedia.Pk to above function!!!!

How can I get full insights for single media?

var fullInsights = await InstaApi.BusinessProcessor.GetFullMediaInsightsAsync("MEDIA ID");

Note: You should pass InstaMedia.InstaIdentifier to above function!!!

How can I star a thread?

var starThread = await InstaApi.BusinessProcessor.StarDirectThreadAsync("THREAD ID");

How can I unstar a thread?

var unstarThread = await InstaApi.BusinessProcessor.UnStarDirectThreadAsync("THREAD ID");

How can I get instagram partners buttons?

var partnersButton = await InstaApi.BusinessProcessor.GetBusinessPartnersButtonsAsync();
Clone this wiki locally