Wrapper for fbGetToken()
and fbGetLongtimeToken()
.
fbAuth(username = getOption("rfacebookstat.username"),
app_id = getOption("rfacebookstat.app_id"),
app_secret = getOption("rfacebookstat.app_secret"),
token_path = fbTokenPath(),
scopes = c("ads_read",
"business_management",
"pages_manage_ads",
"ads_management",
"public_profile"),
reauth = FALSE,
skip_option = FALSE)
API token object
your username on Facebook
ID of Facebook App
Secret of Facebook App
path to dir with credentials
Permissions provide a way for your app to access data from Facebook. For detail see docmentation
boolean, do reauthorization
logical, skip access token from options or not
Alexey Seleznev