作者zerof (猫橘毛发呆雕像)
看板Python
标题Re: 新手请教如何读取所有文章赞数
时间Sun Apr 2 12:26:10 2017
有点太长只好回文了QQ
下次 token 记得遮起来比较好。
posts 预设会回传 message, story, created_time 跟 id ,你如果要抓 reaction 可
以传 fields 要 reactions 。
简单来说就是:
"
.../posts?...&fields=message, created_time, reactions"
官方文件在这里:
https://developers.facebook.com/docs/graph-api/reference/v2.8/post
不抓 likes 的 edge node 是因为其他 reaction 会被略掉,不过抓 reactions 的坏
处就是你还要另外再用 type 分类就是了。
你可以在
https://goo.gl/WLDYCx 这里跑一次看看会比较清楚我在讲什麽。
然後下次拜托不要再拍萤幕了阳光有点大((((( .....
※ 引述《uxed (wergre)》之铭言:
: http://i.imgur.com/KokufZo.jpg
: 我可以读取所有文章日期与内容但是赞数迟迟卡关,想请教板上高手能帮帮小弟解惑
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 122.100.76.218
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Python/M.1491107173.A.AE9.html
※ 编辑: zerof (122.100.76.218), 04/02/2017 12:26:41