按城市获取喜欢在Facebook上的页面的人数 [英] Getting number of people who like a page on facebook by city

查看:58
本文介绍了按城市获取喜欢在Facebook上的页面的人数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个悬而未决的问题是如何获取喜欢页面的人的ID列表(此处).从以前的答案(并阅读FB API文档...),我相信这是不可能的.

A question than has been floating around is how to get the list of IDs of people that like a page (here, or here, for instance). From previous answers (and reading the FB API docs...) I am convinced that to be impossible.

但是,这不是我想要的.我根本不需要user_ids.我只需要每个城市(或某个国家的某个细分)的页面点赞数. Page字段中有一个喜欢"总数的字段,显然这还不够.见解应该提供此信息,但是由于信息是公开的,因此page_fans_country可以正常工作,而page_fans_city不返回任何结果,因此我需要一种获取信息的方法.

However, that is not what I'm after. I don't need the user_ids at all. I just need the number of likes of a page, per city (or some subdivision of a country). There is a field for a Page for the total number of likes, which obviously isn't enough. Insights should provide this, but while page_fans_country works ok as the info is public, page_fans_city returns no results, so I'd need a different way of getting the information.

是否存在一个可以使用的查询(或一组查询)?此时,可以使用Graph API或FQL.

Is there a query (or set of queries) that would work? Either Graph API or FQL would be fine, at this point.

推荐答案

对于您的第一条陈述,我发现这也是正确的.我当前的解决方案包括必需的外部存储.

As to your first statement, I have found that to be correct aswell. My current solution includes, as it has to, external storage.

关于您的实际问题,可以通过您自己发现的Insights API.您应该找到问题,而不是从page_fans_city继续前进(因为它没有返回结果).最有可能的是,您正在使用不带范围manage_pages的用户访问令牌,这会阻止它成为页面访问令牌.您还应该包括read_insights.在此处了解更多信息.有关object/insights的更多信息,请此处.

On to your actual question, it is possible via the Insights API you've found yourself. Rather than moving on from page_fans_city (because it returns no results), you should find the issue. Most likely, you're using a User Access Token without the scope manage_pages, which prevents it from becoming a Page Access token. You should also include read_insights. Read more here. For further information about the object/insights go here.

希望这会有所帮助.

这篇关于按城市获取喜欢在Facebook上的页面的人数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆