Connect to Facebook Graph API, get information from a list of public Facebook items and build a FacebookGenericCollection-class
instance.
FacebookGenericCollection(id, token, parameters = list(),
fields = character(0), .progress = create_progress_bar(),
metadata = FALSE)
A character vector or a comma-delimited string of IDs or an existing Facebook Collection of any of the supported types (see below).
Either a temporary access token created at
https://developers.facebook.com/tools/explorer or the OAuth token
created with fbOAuth
. If token NULL
and id
is a collection,
use the token of the source collection. Otherwise, no query is performed
to the Facebook Graph API and an empty collection is returned.
A list of parameters to be added to the Facebook Graph API query. For more information on the accepted parameters, see: https://developers.facebook.com/docs/graph-api/using-graph-api.
A character vector with the fields to get for each id
. If no value
for a given field is found, it will be set to NULL
.
progress_bar object as defined in the plyr package.
By default the none
progress bar is used, which prints nothing to the console. See create_progress_bar for details.
If set to TRUE
, the metadata for each ID is pulled with the data
and the type
slot is fed accordingly.
Please note that setting this to TRUE
could considerably
slow down the execution time, as more queries are needed.
A collection of elements in a FacebookGenericCollection-class
object or one of its subclasses.
FacebookPostsCollection
, FacebookCommentsCollection
, fbOAuth