Skip to content

Instantly share code, notes, and snippets.

@dan-silver
Last active December 11, 2015 04:19
Show Gist options
  • Save dan-silver/4544696 to your computer and use it in GitHub Desktop.
Save dan-silver/4544696 to your computer and use it in GitHub Desktop.
FQL Queries in the Facebook Checkins Explorer
{checkins: 'SELECT coords, author_uid, message,target_id, target_type, timestamp FROM checkin WHERE author_uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND timestamp > "'+(Math.round((new Date()).getTime()/1000)-365*24*60*60) + '" ORDER BY timestamp DESC LIMIT 0,100',
names: 'SELECT name,uid,pic_small,profile_url FROM user WHERE uid IN (SELECT author_uid FROM #checkins)',
events: 'SELECT name,page_id,page_url FROM page WHERE page_id IN (SELECT target_id FROM #checkins)'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment