View source: R/authorization.R
fbAuth | R Documentation |
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)
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 |
API token object
Alexey Seleznev
## Not run:
fbAuth()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.