本文介绍了如何获得Facebook页面的平均评分和评分数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从Facebook页面中查找评分数和平均值。



我通过oauth获得了长期的页面标记,可以访问除了这些领域。我是否缺少某些东西,或者他们不会像谷歌的地方或四方面的API那样返回这些?



我可以通过/ {page-id} /评分收集个人评分,但是如果我有一个1,000个评论的页面,这些将被归还?这是计算我自己的平均值/计数的可靠替代方案吗?



Google地方评分数是一个隐藏字段(API文档中未显示)。希望Facebook可能有其中一个??

解决方案

您可以使用节点。图表api文档中提到的F​​acebook页面没有一个总评级属性。但是,您可以通过图表API获得的各个评分计算总评级。



图api是相当可靠的,你应该几乎每个帖子通过它。是的,你可以计算自己的平均值/计数原因,当处理1000评论,即使你错过1或2,它将不会有很大的区别,因为评级在(1-5)之间。



注意:



这里在

所以要获取1000个帖子,请确保您将使用分页。


I am trying to find the count of ratings and the average value from facebook pages.

I obtained a long term page token via oauth and can access everything but these fields. Am I missing something, or do they not return these like google places or foursquare APIs do ?

I can collect individual ratings via /{page-id}/ratings, however, if I have a page with 1,000 reviews, will all these be returned? Is it a reliable alternative to calculate my own averages/count?

The google places rating count is a hidden field (not shown in the API docs). Hoping there might be one of these for facebook...?

解决方案

You can get page ratings and review using /page/ratings node . There isn't an aggregate rating attribute for the facebook pages mentioned in the graph api docs .But you calculate the aggregate rating from the individual ratings obtained via graph api .

Graph api is pretty reliable and you should get almost every post via that . and yeah you can calculate your own averages/count cause when dealing with 1,000 reviews even if you miss 1 or 2 it won't make a big difference as ratings is between (1-5) .

note :

It is mentioned here at page/feed that

So for obtaining something like 1000 posts , make sure you will be using paging .

这篇关于如何获得Facebook页面的平均评分和评分数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 03:13