Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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?

like image 596
user1828462 Avatar asked Nov 16 '12 03:11

user1828462


People also ask

How do I find events in a different city on Facebook?

In the top left corner, you can tap the city name to browse events somewhere else. Note: Depending on the event's privacy setting, people may be able to see if you're interested or going to events in a Feed post, notifications, on the event itself or in the events section of your profile.

How do I search for local events on Facebook by date?

Updated mobile browser experienceTap in the top right of Facebook. Tap Events. You can tap Today, Tomorrow or This Week to find events during those times. Scroll to find things like Events You May Like and Popular With Friends.


2 Answers

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

like image 148
Severiano Avatar answered Oct 01 '22 16:10

Severiano


You cannot query the event table without specifying an indexable column, i.e. an actual event Id. You could use the search functionality and query for event types, e.g.

http://graph.facebook.com/search?q=Dublin&type=event
http://graph.facebook.com/search?q=London&type=event

Once you get these results you could then further filter out these by timezone and location.

like image 30
Neil Avatar answered Oct 01 '22 17:10

Neil