如何计算Facebook页面共享的链接数量? [英] how to count number of links shared by a facebook page?

查看:128
本文介绍了如何计算Facebook页面共享的链接数量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个网站上工作,了解特定Facebook页面共享的链接数量(例如, http://www.facebook.com/cocacola ),以便用户可以知道他们是否喜欢一个信息或运球。获取特定页面共享的链接/状态更新数量的最佳方式是什么?

I am working on a website for which it would be useful to know the number of links shared by a particular facebook page (e.g., http://www.facebook.com/cocacola) so that the user can know whether they are 'liking' a firehose of information or a dribble of goodness. What is the best way to get the number of links/status updates that are shared by a particular page?

+1使用python的实现(这是一个django网站)但欢迎任何解决方案!我尝试使用 fbconsole 完成这项工作,但我已经略微简单了。

+1 for implementations that use python (this is a django website) but any solutions are welcome! I tried using fbconsole to accomplish this but I have come up a little short.

为什么值得,这个未回答的问题似乎是相关的。与2012.04.18一样,您可以从Facebook网站的洞察管理页面将您的数据导出到csv。信息在那里我只是不知道如何得到它...

For what it is worth, this unanswered question seems relevant. As does the fact that, as of 2012.04.18, you can export your data to csv from the insights management page on the facebook site. The information is in there I just don't know how to get it out...

感谢您的帮助!

推荐答案

如果有人发现这有用,我以为我会发布我的主要例子。 fbconsole通过 Facebook Graph API 提取数据非常简单。

In the event that anyone else finds this useful, I thought I'd post my gist example here. fbconsole makes it fairly simple to extract data through the Facebook Graph API.

要注意的是,通过fbconsole以编程方式提取数据并不是非常简单,所以我写了 fbconsole.automatically_authenticate 更容易以系统的方式访问这些信息。此补充尚未纳入 fbconsole的主分支(今天早上刚刚发布),但是在此期间,有兴趣的人可以此处

The caveat is that it was not terribly easy to programmatically extract data through fbconsole so I wrote the fbconsole.automatically_authenticate to make it much easier to access this information in a systematic way. This addition has not yet been incorporated into the master branch of fbconsole (it was just posted this morning), but it is available here in the meantime for those that are interested.

这篇关于如何计算Facebook页面共享的链接数量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆