Facebook FQL: Get checkins within range

后端 未结 1 1082
心在旅途
心在旅途 2020-12-06 14:35

Is there a way to use FQL to select all my friends Checkins that are in range of a specified location? I can use FQL to return my friends checkin coords:

https

相关标签:
1条回答
  • 2020-12-06 14:56

    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

    0 讨论(0)
提交回复
热议问题