Learn R Programming

rfacebookstat (version 2.11.0)

fbGetBusinessUserAdAccounts: Get a list of accounts for a business manager user

Description

Loading account list for business manager user.

Usage

fbGetBusinessUserAdAccounts(
     business_users_id = NULL, 
     business_id       = getOption("rfacebookstat.business_id"), 
     api_version       = getOption("rfacebookstat.api_version"), 
	 username          = getOption("rfacebookstat.username"),
     token_path        = fbTokenPath(),
     access_token      = getOption("rfacebookstat.access_token"))

Value

Data frame with ad account list.

Arguments

business_users_id

ID by business manager user.

business_id

ID by your Business Manager

username

your username on Facebook

token_path

path to dir with credentials

access_token

Your facebook API token.

api_version

Current Facebook API version.

Author

Alexey Seleznev

Examples

Run this code
if (FALSE) {
options(rfacebookstat.business_id  = 000000000000,
        rfacebookstat.access_token = "abcde12345....")

my_accs <- fbGetBusinessUserAdAccounts(
                     business_users_id = 777423445991332
					 )
}

Run the code above in your browser using DataLab