Description Usage Arguments Details Value Valid sources Author(s) See Also Examples
View source: R/FacebookMessagesCollection.R
Connect to Facebook Graph API, get information from a list of inbox messages and build a FacebookMessagesCollection-class
instance.
1 2 3 4 |
id |
A character vector or a comma-delimited string of IDs or an existing Facebook Collection of any of the supported types (see below). |
token |
Either a temporary access token created at
https://developers.facebook.com/tools/explorer or the OAuth token
created with |
parameters |
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. |
fields |
A character vector with the fields to get for each |
n |
If |
metadata |
If set to |
.progress |
progress_bar object as defined in the plyr package.
By default the |
FacebookMessagesCollection
is the constructor for the FacebookMessagesCollection-class
.
It returns data about inbox messages between users or users and pages.
A collection of messages in a FacebookMessagesCollection-class
object.
Instead of a character vector, one of these collections can also be passed as parameter in id
:
FacebookConversationsCollection-class
will build a collection with
all the messages from the given conversations. A page access token with read_page_mailboxes
is needed
to read the related mailboxes user access token with read_mailbox
is needed to perform this action,
in case of conversations between users.
Gabriele Baldassarre https://gabrielebaldassarre.com
FacebookConversationsCollection
, facebook.participants
, facebook.senders
Other Facebook Collection Constructors: FacebookAlbumsCollection
,
FacebookCommentsCollection
,
FacebookConversationsCollection
,
FacebookEventsCollection
,
FacebookGroupsCollection
,
FacebookLikesCollection
,
FacebookPagesCollection
,
FacebookPhotosCollection
,
FacebookPostsCollection
,
FacebookReactionsCollection
,
FacebookUsersCollection
,
FacebookVideosCollection
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
## See examples for fbOAuth to know how token was created.
load("fb_page_oauth")
## Getting the messages of the first conversation of an example page.
## A page access token is needed to access the inbox
messages <- FacebookPagesCollection("9thcirclegames", fb_page_oauth) %>%
FacebookConversationsCollection(n = 1) %>%
FacebookMessagesCollection()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.