files/config.R

#' @title config for fanpage data
#' @name config
#'
#' @description
#' \code{config} make config to get fanpage data
#'
#' @param id id of fanpage
#' @param ad.account ad account from Facebook
#' @param token token from Facebook
#' @param date.from start date of research #format yyyy-mm-dd
#' @param date.to end date of research #format yyyy-mm-dd
#' @param directory directory to save the png file
#' @param name name of file to save to
#'
#' @return list with config for getting number of fans from fanpage
#' @examples config = list(id = 450100695180891, ad.account = 224371541, token = 'token',
#' date.from = '2017-05-01', date.to = '2017-05-10',
#' directory = '~/FanpageData/files/', name = 'fanpage2')

config = list(id = 450100695180891, #id of fanpage
              ad.account = 224371541, #ad account from Facebook
              token = 'EAADd6gCguI8BABCa5jew3mZBSV4qjEZAdrYHeDDf8zfwCZAXZCgLr9zXtrU6FsEGdfh44gZB1CMMxo7k7ZAXtal615Pb2r9H6CLfqxhK2JrvVWF3LDykayAToJ34eYlvQyYXbXygTDVrC8c5OoYlXWp4ZAT389vgk0ZD',
                 #token from Facebook
              date.from = '2017-05-01', #start date of research
              date.to = '2017-05-10', #end date of research
              directory = '~/FanpageData/files/', #directory to which we want to save graph and data
              name = 'fanpage2' #name of files to save to

)
karolgileta/FanpageData documentation built on June 24, 2017, 8:41 a.m.