如何检索我的Facebook页面在某一天的粉丝数量? [英] How can I retrieve the number of fans my Facebook page had on a given day?

查看:1232
本文介绍了如何检索我的Facebook页面在某一天的粉丝数量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何检索Facebook页面在某一天的粉丝数量?我试图找到一种方式来显示一个日期与粉丝数量的情节,但是我找不到一个获得粉丝数量的方法。

How can I retrieve the number of fans my Facebook page had on a given day? I am trying to find a way to display a plot of date vs number of fans, but I can't find a way to get the number of fans by date.

我已经尝试过:

从指标中选择active_users,其中end_time = 1263812045和period = 2592000

select active_users from metrics where end_time = 1263812045 and period = 2592000

在Facebook开发人员工具页面( http://developers.facebook.com/tools.php ) ),但是它会检索一个空集。

in the Facebook developers tools page for my Page ( http://developers.facebook.com/tools.php ), but it retrieves an empty set.

推荐答案

首先:您可以检索有关用户的统计信息,不要告诉你你的网页有多少粉丝。要检索粉丝,您需要查询 page_fan FQL表格的fan_count列/ a>,但是您无法获取历史数据,只能算出总数。因此,您需要每天查询并建立自己的数据库。

Firstly: you can retrieve statistics such as active users for apps, but it won't tell you how many fans your page has. To retrieve fans you need to query the fan_count column of the page_fan FQL table, but you can't get historical data, only a total count. So you'll need to query it every day and build up your own database.

如果从原始查询中,您真的想要一个应用程序的活跃用户,那不是特别直截了当的FQL查询barfs在很多时间戳。 指标FQL表格文档声称您需要进入午夜PST时间戳,但我发现它接受了2am GMT,没有别的。例如。 从指标中选择active_users,其中end_time = 1263715200和period = 2592000 适用于我的应用和页面,但请注意如上:此操作检索活动用户数,粉丝数量。

If, from the original query, you really wanted active users for an app, it's not particularly straightforward as the FQL query barfs at a lot of timestamps. The metrics FQL table documentation claims that you need to enter midnight PST timestamps, but I've found that it accepts 2am GMT and nothing else. E.g. select active_users from metrics where end_time = 1263715200 and period = 2592000 works for me on both apps and pages, but note as above: this retrieves an active user count and not the number of fans.

这篇关于如何检索我的Facebook页面在某一天的粉丝数量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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