楼主: mipbuilder
9917 116

《Mastering Social Media Mining with R》   [推广有奖]

11
hsiaoyan 发表于 2015-10-10 06:26:10 |只看作者 |坛友微信交流群

getPage

  1. Examples
  2. ## Not run:
  3. ## See examples for fbOAuth to know how token was created.
  4. ## Getting information about Facebook's Facebook Page
  5. load("fb_oauth")
  6. fb_page <- getPage(page="facebook", token=fb_oauth)
  7. ## Getting posts on Humans of New York page, including posts by others users
  8. ## (not only owner of page)
  9. page <- getPage(page="humansofnewyork", token=fb_oauth, feed=TRUE)
  10. ## Getting posts on Humans of New York page in January 2013
  11. page <- getPage(page="humansofnewyork", token=fb_oauth, n=1000,
  12. since='2013/01/01', until='2013/01/31')
  13. ## End(Not run)
复制代码

使用道具

12
tyaer 发表于 2015-10-18 23:25:55 |只看作者 |坛友微信交流群

getPost

  1. Examples
  2. ## Not run:
  3. ## See examples for fbOAuth to know how token was created.
  4. ## Getting information about Facebook's Facebook Page
  5. load("fb_oauth")
  6. fb_page <- getPage(page="facebook", token=fb_oauth)
  7. ## Getting information and likes/comments about most recent post
  8. post <- getPost(post=fb_page$id[1], n=2000, token=fb_oauth)
  9. ## 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).

使用道具

13
njuyy 发表于 2015-10-19 01:28:50 |只看作者 |坛友微信交流群

getUsers

  1. Examples
  2. ## Not run:
  3. ## See examples for fbOAuth to know how token was created.
  4. ## Getting information about the authenticated user
  5. load("fb_oauth")
  6. fb <- getUsers("me", token=fb_oauth)
  7. fb$username
  8. ## End(Not run)
复制代码

使用道具

14
ryanliang 发表于 2015-10-26 07:36:39 |只看作者 |坛友微信交流群

searchFacebook

  1. Examples
  2. ## Not run:
  3. ## Searching 100 public posts that mention "facebook"
  4. posts <- searchFacebook( string="facebook", token=fb_oauth, n=100 )
  5. ## Searching 100 public posts that mention "facebook" from yesterday
  6. posts <- searchFacebook( string="facebook", token=fb_oauth, n=100,
  7. since = "yesterday 00:00", until = "yesterday 23:59" )
  8. ## End(Not run)
复制代码

使用道具

15
Nicolle 学生认证  发表于 2015-10-26 10:02:33 |只看作者 |坛友微信交流群

searchGroup

提示: 作者被禁止或删除 内容自动屏蔽

使用道具

16
Nicolle 学生认证  发表于 2015-10-26 10:03:26 |只看作者 |坛友微信交流群

searchPages

提示: 作者被禁止或删除 内容自动屏蔽

使用道具

17
Nicolle 学生认证  发表于 2015-10-26 10:04:16 |只看作者 |坛友微信交流群

updateStatus

提示: 作者被禁止或删除 内容自动屏蔽

使用道具

18
Nicolle 学生认证  发表于 2015-10-26 10:06:38 |只看作者 |坛友微信交流群
提示: 作者被禁止或删除 内容自动屏蔽

使用道具

19
Nicolle 学生认证  发表于 2015-10-26 10:23:00 |只看作者 |坛友微信交流群
提示: 作者被禁止或删除 内容自动屏蔽

使用道具

20
liyi3344520 发表于 2015-10-26 10:47:40 |只看作者 |坛友微信交流群
看看看

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-23 22:35