Facebook FQL: Get checkins within range

你说的曾经没有我的故事 提交于 2019-11-28 00:20:33
phreakhead

So there's some undocumented function called distance() that might help you, although it doesn't work so well (especially since it's limited to 50km radius):

SELECT coords, author_uid, tagged_uids, target_id, message FROM checkin WHERE target_id IN
(SELECT page_id FROM place WHERE distance(latitude, longitude, "37.75377496892", "-122.42077080676") < 50000)

Max is 50,000 meters, which is the output unit of FQL's (apparently undocumented) distancefunction.

https://developers.facebook.com/docs/reference/fql/checkin/ https://developers.facebook.com/docs/reference/fql/place

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!