fbAuth: Authorization in Facebook.

View source: R/authorization.R

fbAuthR Documentation

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)

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

Value

API token object

Author(s)

Alexey Seleznev

Examples

## Not run: 
fbAuth()

## End(Not run)

rfacebookstat documentation built on Sept. 29, 2022, 5:13 p.m.