Skip to content

Instantly share code, notes, and snippets.

View ws's full-sized avatar

Will Smidlein ws

View GitHub Profile
@ws
ws / random_event.js
Created June 9, 2017 02:06
Find a random Facebook event (to bring yourself out of your comfort zone)
// Inspired by http://www.npr.org/sections/alltechconsidered/2017/06/08/531796329/eager-to-burst-his-own-bubble-a-techie-made-apps-to-randomize-his-life
// Literally all of the heavy lifting is done by https://github.com/tobilg/facebook-events-by-location-core
var EventSearch = require('facebook-events-by-location-core')
var es = new EventSearch({
"lat": 42.338998, // http://www.latlong.net/
"lng": -83.048520,
"distance": 250,
"accessToken": "YOURTOKENHERE" // https://developers.facebook.com/tools/accesstoken