有没有办法获取特定城市的所有Facebook活动? [英] Is there any way to fetch all Facebook events in a specific city?
问题描述
Elmcity在事件标题中简单地搜索一个关键字。尝试兰开斯特。您将在英国,PA,NY OH和CA获得活动。您还可以在标题中搜索非位置字词,如野餐,脚本返回事件。
您可以尝试按位置查询事件。使用图形API在搜索查询中使用中心参数:
https://graph.facebook.com/search ?q = *& type = event& center = 37.76,-122.427& distance = 1000
没有办法通过位置通过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¢er=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屋!