使用Facebook图形API查看Facebook发布信息 [英] Viewing Shares information for a Facebook post using Facebook graph API
本文介绍了使用Facebook图形API查看Facebook发布信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在rails上使用Facebook图表来查找分享它的特定帖子。查看文档和api数据,似乎没有这个信息可用于特定的帖子。我可以得到喜欢和意见的信息,但不是分享。是否有人知道目前的Facebook Api是否提供了这些信息?
Im trying to use the Facebook graph api on rails to find for a specific post who shared it. Looking through the documentation and the api data it doesn't seem that this information is available for a specific post. I am able to get the likes and comments information, however not the shares.
谢谢
推荐答案
使用Graph API,请求 graph.facebook.com/POST_ID?fields= sharedposts
。
通过结果数组迭代获取共享者的身份。
Using Graph API, do a request to graph.facebook.com/POST_ID?fields=sharedposts
.
Iterate through the resulting array to get the sharers' identity.
Python中的示例 here 。
Example in Python here.
这篇关于使用Facebook图形API查看Facebook发布信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文