2017-01-30 104 views
1

我知道有很多帖子提出了同样的问题和提供的解决方案,但是我发现流行的和被接受的答案都不是'似乎提供了一个准确的答案。这很可能是由于Facebook的图形API错误,但因为我真的不知道,因此question.I已经使用下面使用图表API获取Facebook赞和Facebook共享的URL准确计数

https://graph.facebook.com/?fields=id,share,og_object{likes.limit(0).summary(true),comments.limit(0).summary(true)}&id=http://www.yoururl.com 

的网址,然后我得到的是如下

{ 
    "id": "http://www.yoururl.com", 
    "share": { 
    "comment_count": 0, 
    "share_count": 4068 
}, 
    "og_object": { 
    "likes": { 
    "data": [ 

    ], 
    "summary": { 
     "total_count": 0 
    } 
    }, 
    "comments": { 
    "data": [ 

    ], 
    "summary": { 
     "order": "chronological", 
     "total_count": 0 
    } 
    }, 
    "id": "1088138987923727" 
    } 
} 

这是不准确的,因为share_count实际上是股票+评论+喜欢,简而言之,是否有更好的方法来实现?

回答

0

经过很长时间的研究后,我得出结论:没有更好的方法来做到这一点。 Facebook将所有这些视为互动。