FacebookGenericCollection-class: A generic collection of Facebook elements

Description Details Slots Author(s) See Also

Description

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

Details

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.

Slots

data

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

id

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

fields

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

token

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.

parent

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

parent.collection

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

type

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

Author(s)

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.