2011-09-28 16 views
0

我做一個查詢來獲得的總喜歡一個域名,我使用了以下內容:Facebook的見解domain_widget_likes - >生命期不返回結果?

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')試試查詢可以正常工作,但我不僅需要每天都喜歡。

任何人都知道它是否是洞察數據的新規則還是bug?

非常感謝。

回答

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 

String Comparison Functions Reference對通配符查詢更多信息,等