Extract list of users who publicly shared a public Facebook post
Extract list of users who publicly shared a public Facebook post
getShares retrieves a list of posts that correspond to shares of a post on a public Facebook page. Only public posts by users who have granted authorization to the app used to authenticate.
getShares returns a data frame with four variables: from_name
(the name of the user who shared the post), from_id (the ID of the user who shared the post), shared_time (the time at which the post was shared), and id (the ID of the new post).
## Not run:## See examples for fbOAuth to know how token was created.## Getting information about Facebook's Facebook Pageload("fb_oauth")fb_page <- getPage(page="facebook", token=fb_oauth)## Getting shares of most recent postshares <- getShares(post=fb_page$id[1], n=2000, token=fb_oauth)## End(Not run)