有没有办法获取特定城市的所有Facebook活动? [英] Is there any way to fetch all Facebook events in a specific city?

查看:175
本文介绍了有没有办法获取特定城市的所有Facebook活动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在特定的城市获取所有Facebook活动吗?我所需要的只是事件ID没有别的。它应该是所有的事件(公共的),不仅是某人的事件。 Facebook会让我们取得这个信息吗?

解决方案

Elmcity在事件标题中简单地搜索一个关键字。尝试兰开斯特。您将在英国,PA,NY OH和CA获得活动。您还可以在标题中搜索非位置字词,如野餐,脚本返回事件。



您可以尝试按位置查询事件。使用图形API在搜索查询中使用中心参数:

  https://graph.facebook.com/search ?q = *& type = event& center = 37.76,-122.427& distance = 1000 

在FB资源管理工具中运行查询



没有办法通过位置通过FQL查询事件。



最大距离为50000,以米为单位。返回的记录数量有限制,但您可以使用分页来检索更多的事件。



在撰写本文(2015年6月)时,Facebook默认忽略 center 参数。






源自此帖: href =https://stackoverflow.com/questions/11181480/how-can-i-query-public-facebook-events-by-location-city>源文件


Can I fetch all Facebook events in a specific city? All I need is event IDs nothing else. It should be all events (public), not only someone's events. Will Facebook let us fetch that info?

解决方案

Elmcity does a simple search for a keyword in the event title. Try "Lancaster" for example. You'll get events in the UK, PA, NY OH and CA. You can also search for a non-location based word in the title like "picnic" and the script returns events.

You can try to query for events by location. With the graph API use the "Center" parameter in a search query:

https://graph.facebook.com/search?q=*&type=event&center=37.76,-122.427&distance=1000

Run the query in FB explorer tool.

There is no way to query events via FQL by location.

The maximum distance is 50000 and is expressed in meters. There are limits to the number of records that are returned but you can use paging to retrieve further events.

As of writing this (Jun 2015), facebook silently ignores the center parameter.


the source come from this post: Source Post

这篇关于有没有办法获取特定城市的所有Facebook活动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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