Learn R Programming

rfacebookstat (version 2.11.0)

fbAuth: 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)

Value

API token object

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

Author

Alexey Seleznev

Examples

Run this code
if (FALSE) {
fbAuth()
}

Run the code above in your browser using DataLab