如何访问 Facebook 国家数据库
如何访问 Facebook 国家数据库?
有没有办法通过 fql 查询进行访问。
如果有人知道,请告诉我。
How can access the facebook country database?
Is there any way to access through the fql queries.
If anybody knows,let me know.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无法检索用户可用的国家/地区列表作为指定其位置(例如家乡或当前城市)的选项。
不过,有用于广告定位目的的城市列表(可能已过时):
Facebook 上的位置只是 Facebook 页面
category
City、Country、Regional(可能还有其他一些类别,我不知道有任何这些的完整列表)。您的选择(如果您只需要 Facebook 的官方数据):
type=page
进行图形 API 搜索,然后仅过滤特定类别。类似于
GET https://graph.facebook.com/search?q=Australia&type=page
请注意,您将获得大量结果,因此这是获取此信息的最低效方式...
对于国家/地区
GET https://graph.facebook.com/search?q=au&type=adcountry
您可能还想阅读类似的问题按国家/地区列出的城市列表
There is no way to retrieve list of countries available to users as option to specify their locations like Hometown or Current City.
There is however lists of cities for advertising targeting purposes (probably outdated):
Locations on Facebook is just Facebook Pages with
category
City, Country, Regional (and probably some other categories as well, I'm not aware of any full list of those).Your options (if you want only official data from Facebook):
type=page
and later filtering only specific categories.Something like
GET https://graph.facebook.com/search?q=Australia&type=page
Be warned that you'll get a lot of results so this is most inefficient way for getting this information...
For countries
GET https://graph.facebook.com/search?q=au&type=adcountry
You may also want to read similar question List of Cities by Country