从 FQL api 获取见解时出现问题
我有兴趣从见解中返回一些指标,但我很难从 FQL 中获取结果。
我需要取回以下内容。 页面展示/点赞/分享 帖子印象数/喜欢/分享/评论
对于帖子印象数
fql?q=SELECT metric, value FROM insights WHERE object_id=#### AND metric='post_impressions_unique' AND end_time=end_time_date('2011-10-30') AND period=period('lifetime')
对于页面印象数,
fql?q=SELECT metric, value FROM insights WHERE object_id=#### AND metric='page_impressions' AND end_time=end_time_date('2011-10-30') AND period=period('lifetime')
我返回空数据集:
{
"data": [
]
}
我做错了什么?
I am interested in returning back a few metrics from insights but i am having difficulty getting results from FQL.
I need to get back the following.
page impressions/likes/shares
posts impressions/likes/share/comments
For post impressions
fql?q=SELECT metric, value FROM insights WHERE object_id=#### AND metric='post_impressions_unique' AND end_time=end_time_date('2011-10-30') AND period=period('lifetime')
For page impressions
fql?q=SELECT metric, value FROM insights WHERE object_id=#### AND metric='page_impressions' AND end_time=end_time_date('2011-10-30') AND period=period('lifetime')
i get back empty data sets:
{
"data": [
]
}
What am i doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我一开始也有同样的问题。根据文档,“page_impressions”和“page_impressions_unique”只能采用“day”、“week”和“days_28”期间。如果这不能解决问题,请尝试更改为不同的结束日期(这是我的问题)。
I had the same problem at first. According to the documentation, 'page_impressions' and 'page_impressions_unique' can only take the periods of 'day', 'week', and 'days_28'. If that doesn't fix the problem, try changing to a different end date (which was my problem).