【发布时间】:2015-06-15 06:20:37
【问题描述】:
如何使用 koala gem 从应用页面获取信息?
例如,如果我想获取有关 candy crush saga 的点赞页面的信息,我输入 @graph.get_object(candycrushsaga+"/likes")。
如何获得其他功能,例如 cmets、赞和分享?
这可以使用考拉吗?
【问题讨论】:
如何使用 koala gem 从应用页面获取信息?
例如,如果我想获取有关 candy crush saga 的点赞页面的信息,我输入 @graph.get_object(candycrushsaga+"/likes")。
如何获得其他功能,例如 cmets、赞和分享?
这可以使用考拉吗?
【问题讨论】:
您可以通过 get_connections 使用 feed 节点,即
@graph.get_connections('candycrushsaga','feed?fields=status_type,type,story,message,likes{name},comments,link,name, from')
更多信息https://developers.facebook.com/docs/graph-api/reference/v2.3/page/feed 和 https://developers.facebook.com/docs/graph-api/reference/v2.3/post#fields。
【讨论】: