createLabels: Create labels

Description Usage Arguments Value Author(s) See Also Examples

View source: R/createLabels.R

Description

Create labels in given account

Usage

1
createLabels(account.id, labels, token)

Arguments

account.id

ID of the account to retrieve labels from.

labels

Name of labels to create

token

A valid token as returned by fbAuthenticate or a short-term token from facebook Graph API Explorer.

Value

Vector of label IDs created

Author(s)

John Coene jcoenep@gmail.com

See Also

listLabels

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
# run authentication with your app details
TK <- fbAuthenticate(app.id = "1234567890123456", 
                     app.secret = "16xx79321xx0130x2x10a08x3e2x80xx")
                     
# get 100 accounts users (me) has access to
accounts <- listAccounts("me", TK)

ids <- createLabels(accs$id[1], labels = c("first label", "second label"),
                    token = TK)

## End(Not run)

JohnCoene/fbadsinsightsr documentation built on May 28, 2019, 12:55 p.m.