powered by
fbGetAdAccounts get data frame with avable in your bussines manager ad account list in R.
fbGetAdAccounts(source_id = getOption("rfacebookstat.business_id"), api_version = getOption("rfacebookstat.api_version"), username = getOption("rfacebookstat.username"), token_path = fbTokenPath(), access_token = getOption("rfacebookstat.access_token"))
Data frame with ad account list.
Your business manager or project ID.
Your facebook API token.
your username on Facebook
path to dir with credentials
Current Facebook API version.
Alexey Seleznev
if (FALSE) { fbAccounts <- fbGetAdAccounts(source_id = "xxxxxxxxxxxxx", api_version = "v2.10", access_token = "xxxxxxxx") }
Run the code above in your browser using DataLab