FacebookGenericCollection-class: A generic collection of Facebook elements

Description Details Slots Author(s) See Also


Connect to Facebook Graph API, get public information from a list of Facebook elements of any kind and build a FacebookUsersCollection-class instance.


This collection should not be built directly, as it performs no sanity check on its content. However, among all the available collections, it's the only one that can have mixed content inside, so many commodity endpoint functions like facebook.search fill this as return value. But, for the same reasons, it cannot hold fields different from id.

If you exactly know what you're doing you could eventually build an instance of this class to perform generic queries to Graph API, but it's not guaranteed to work and it probably won't, actually.



The raw data in a list form and as pulled from Facebook


A character vector with the id of the items included in the collection


A character vector with the fields included for each ID in the collection. Ie. id, name, created_time...


Either a temporary access token created at https://developers.facebook.com/tools/explorer or the OAuth token created with fbOAuth used to fill the collection.


A character vector of the parent id of the items included in the collection or NA if the items have no valid inheritance


The collection used to build this one, or NA if the collection was built from a character vectors of ids.


A character vector with the type of each element of the collection. It's set only if the collection has been built with metadata=TRUE


Gabriele Baldassarre https://gabrielebaldassarre.com

See Also

Other Facebook Collections: FacebookAlbumsCollection-class, FacebookCommentsCollection-class, FacebookConversationsCollection-class, FacebookEventsCollection-class, FacebookGroupsCollection-class, FacebookLikesCollection-class, FacebookMessagesCollection-class, FacebookMixedCollection-class, FacebookPagesCollection-class, FacebookPhotosCollection-class, FacebookPostsCollection-class, FacebookReactionsCollection-class, FacebookVideosCollection-class

facebook.S4 documentation built on May 2, 2019, 4 a.m.