Javascript 使用facebook api的facebook insights paqe视图;s
我想得到每月的浏览量,但我的查询给出了这样的回答Javascript 使用facebook api的facebook insights paqe视图;s,javascript,facebook,facebook-graph-api,facebook-javascript-sdk,facebook-like,Javascript,Facebook,Facebook Graph Api,Facebook Javascript Sdk,Facebook Like,我想得到每月的浏览量,但我的查询给出了这样的回答 209652442394600/insights?metrics/page_views?monthly 不要跟随注释,而是使用它在任何其他日期基础上进行评估 { "data": [ ], "paging": { "previous": "https://graph.facebook.com/v2.3/209652442394
209652442394600/insights?metrics/page_views?monthly
不要跟随注释,而是使用它在任何其他日期基础上进行评估
{
"data": [
],
"paging": {
"previous": "https://graph.facebook.com/v2.3/209652442394600/insights? debug=all&pretty=0&suppress_http_code=1&since=1428469526&until=1428728726",
"next": "https://graph.facebook.com/v2.3/209652442394600/insights?debug=all&pretty=0&suppress_http_code=1&since=1428987926&until=1429247126" }}
函数p_视图()
{
//数据:数组[10],
FB.api(“/144765045682596/insights/page_views?period=day&since=1427846400&till=1429142400”,函数(响应){
对于(var i=0;i
这件作品很完美
function p_view()
{
//data:Array[10],
FB.api("/144765045682596/insights/page_views? period=day&since=1427846400&until=1429142400", function (response) {
for (var i = 0; i < response.data.length; i++)
{
var thread = response.data[i].values;
var s=13;
//if (thread.values[13] == thread.values[i])
//{
var tm = thread[s].end_time;
var th = thread[s].value;
document.getElementById('datev').innerHTML = tm;
document.getElementById('viewers').innerHTML = th;
// var values = thread.values;
// //var comment = thread.
//}
}
});
}