- Examples
- ## 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 information and likes/comments about most recent post
- post <- getPost(post=fb_page$id[1], n=2000, token=fb_oauth)
- ## End(Not run)
复制代码getPost returns a list with three components: post, likes, and comments. First, post containsinformation about the post: author, creation date, id, counts of likes, comments, and shares, etc.Second, likes is a data frame that contains names and Facebook IDs of all the users that liked thepost. Finally, comments is a data frame with information about the comments to the post (author,message, creation time, id).