Facebook api 2.7 -没有指标指定


Facebook api 2.7 - No Metric Specified

我一直使用下面的请求从facebook api接收数据:

143357502355510/feed?fields=insights{name,title}&since=1474732800&until=1477324800&limit=100

但是在2.6版本已弃用并且我将sdk版本更改为2.7之后,此错误正在接收:

"error": {
"message": "Invalid query",
"type": "OAuthException",
"code": 3001,
"error_subcode": 1504028,
"is_transient": false,
"error_user_title": "No Metric Specified",
"error_user_msg": "No metric was specified to be fetched. Please specify one or more metrics to be fetched and try again.",
"fbtrace_id": "XXXXXXXXXXX"
}

无论如何更改请求并获得与以前相同的数据?

找到答案了:

查看这篇文章

,我把我的请求改为:

143357502355510/feed?fields=insights.metric(post_impressions_unique,post_impressions){values,title}&since=1474732800&until=1477324800&limit=100