Is there any way to fetch all Facebook events in a specific city?

user1828462 picture user1828462 · Nov 16, 2012 · Viewed 20.2k times · Source

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?

Answer

Severiano picture Severiano · Feb 1, 2013

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