query_facebook: Fetch clean, streamlined Facebook Insights Data, from a...

Description Usage Arguments Value Examples

Description

query_ga returns multiple Facebook Insights responses in a single data.table

Usage

1
2
3
query_facebook(queries_table, start_date, end_date,
  config_path = "config.json", token_path = "tokens/fbInsights_token",
  override_dates = TRUE, include_query_data = FALSE)

Arguments

queries_table

data.table of queries

start_date

start date as character string in "%Y-%m-%d" format

end_date

end date as character string in "%Y-%m-%d" format

config_path

path where the config.json file is located

override_dates

whether all dates should be overriden with those in start_date & end_date

include_query_data

whether the full query data should be included in a column as a json object

Value

A data.table filled with great, interesting googleAnalytics data!!

Examples

1
2
3
4
## Not run: 
query_facebook(queries_table, "2015-01-01", "2015-02-01", config_path = "config.json", override_dates = TRUE, include_query_data = TRUE)

## End(Not run)

RazorfishGermany/reportingManager documentation built on May 9, 2019, 9:22 a.m.