Description Usage Arguments Details Author(s) See Also Examples
getReactions
retrieves information from a single or multiple posts,
returning the total count of reactions of each type (like, love, haha,
wow, sad, angry).
1 | getReactions(post, token, verbose = TRUE, api = NULL)
|
post |
A post ID, or a vector of post IDs |
token |
Either a temporary access token created at
https://developers.facebook.com/tools/explorer or the OAuth token
created with |
verbose |
logical, default is |
api |
API version. e.g. "v2.8". |
The solution implemented here is based on this Stack Overflow response: http://stackoverflow.com/questions/36930414/how-can-i-get-facebook-graph-api-reaction-summary-count-separately
Pablo Barbera pablo.barbera@nyu.edu
1 2 3 4 5 6 7 8 9 | ## Not run:
## See examples for fbOAuth to know how token was created.
## Getting information about Facebook's Facebook Page
load("fb_oauth")
fb_page <- getPage(page="facebook", token=fb_oauth)
## Getting reactions for most recent post
post <- getReactions(post=fb_page$id[1], token=fb_oauth)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.