Learn R Programming

rfacebookstat (version 2.11.0)

fbGetPages: Get pages list

Description

Load data about all avable pages

Usage

fbGetPages(accounts_id  = getOption("rfacebookstat.accounts_id"), 
           api_version  = getOption("rfacebookstat.api_version"), 
           username     = getOption("rfacebookstat.username"),
           token_path   = fbTokenPath(),
           access_token = getOption("rfacebookstat.access_token"))

Value

Data frame with pages list

Arguments

accounts_id

Facebook Ad Account ID.

api_version

Current Facebook API version.

username

your username on Facebook

token_path

path to dir with credentials

access_token

Your facebook API token.

Author

Alexey Seleznev

Examples

Run this code
if (FALSE) {
accounts <- fbGetAccounts()
fbPages <- fbGetPages(accounts$id)
}

Run the code above in your browser using DataLab