fbAuth {rfacebookstat} | R Documentation |
Authorization in Facebook.
Description
Wrapper for fbGetToken()
and fbGetLongtimeToken()
.
Usage
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)
Arguments
username |
your username on Facebook |
app_id |
ID of Facebook App |
app_secret |
Secret of Facebook App |
token_path |
path to dir with credentials |
scopes |
Permissions provide a way for your app to access data from Facebook. For detail see docmentation |
reauth |
boolean, do reauthorization |
skip_option |
logical, skip access token from options or not |
Value
API token object
Author(s)
Alexey Seleznev
Examples
## Not run:
fbAuth()
## End(Not run)
[Package rfacebookstat version 2.11.0 Index]