square-methods: Return parts of a Facebook collection

Description Usage Arguments Examples

Description

This generic returns parts of a given Facebook collections

Usage

1
2
## S4 method for signature 'FacebookGenericCollection'
x[i, j, drop]

Arguments

x

A valid collection of Facebook elements

i

slicing on the first dimension index

j

not used in this context

drop

not used in this context

...

not used in this context

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
## See examples for fbOAuth to know how token was created.
 load("fb_oauth")
 
## Getting information about two example Facebook Pages
 fb.pages <- FacebookPagesCollection(id = c("9thcirclegames",
                                           "NathanNeverSergioBonelliEditore"), 
                                     token = fb_oauth)
 
## Pull at most 20 albums from each page
 fb.albums <- FacebookAlbumscollection(id = fb.pages, token = fb_oauth, n = 20)
 
## Create a new collection skipping the first 10 albums
 fb.oldest.albums <- fb.albums[11:length(fb.oldest.albums)]

## End(Not run)

theclue/facebook.S4 documentation built on May 31, 2019, 9:11 a.m.