fbins_insta: Instagram basic insights.

View source: R/functions.R

fbins_instaR Documentation

Instagram basic insights.

Description

This returns, in a data frame, a summary of Instagram insights within the specified time period. Only 30 days' data can be retrieved through the API and this is the full scope of variables.

Usage

fbins_insta(start_date, until_date, time_period, page_access_token,
  insta_account)

Arguments

start_date

The first full day to report, in the format "YYYY-MM-DD" .

until_date

The last full day to report, in the format "YYYY-MM-DD" .

page_access_token

This must be a valid page access token with sufficient privileges. Visit the Facebook API Graph Explorer to acquire one.

insta_account

This is the Instagram business account to be queried.

period

One of "day", "week", "days_28", "month", "lifetime", "total_over_range" .

Examples

fbins_insta("start_date", "until_date", "period", "page_access_token", "insta_account")
fbins_insta("2017-01-20", "2017-01-22", "day", "ABCDEFG1234567890ABCDEFG", "1234567890123")

Deducive/FBinsightsR documentation built on April 4, 2023, 3:57 a.m.