0

我正在查询一个域的总点数,我正在使用以下内容:

https://api.facebook.com/method/fql.query?query=SELECT metric, value FROM insights WHERE object_id=xxxxxxxxx AND metric='domain_widget_likes' AND end_time=end_time_date('2011-08-27') AND period=period('lifetime')&access_token=xxxxxxxxx

我已经声明了我的域,拥有我的域的对象 ID 并安装了一个应用程序来访问洞察力并发送令牌。

但是什么也不返回,如果我尝试使用 period('day') 查询工作正常,但我不仅需要每天都喜欢。

任何人都知道这是洞察数据的新规则还是错误?

非常感谢。

4

1 回答 1

0

您是否可以在查询中使用通配符%period LIKE period('%')):

https://api.facebook.com/method/fql.query?query=SELECT metric, value FROM insights WHERE object_id=xxxxxxxxx AND metric='domain_widget_likes' AND end_time=end_time_date('2011-08-27') AND period LIKE period('%')&access_token=xxxxxxxxx

字符串比较函数参考有更多关于查询通配符等的信息。

于 2011-09-28T23:50:16.250 回答