gpt4 book ai didi

facebook-graph-api - 如何在某个地点附近找到过去签到过的 friend ?

转载 作者:行者123 更新时间:2023-12-04 18:19:49 25 4
gpt4 key购买 nike

在我的应用程序中,用户在一个位置并正在寻找她的 friend ,这些 friend 在她所在的地方 10 英里范围内的任何地方。如何使用 FQL 或图形找到这个?我能看到的唯一方法是运行如下搜索:https://graph.facebook.com/search?type=checkin然后运行结果以找出 10 英里内的位置。有没有更好的方法呢?

谢谢你的帮助!

多尔斯

最佳答案

来自 http://developers.facebook.com/docs/reference/fql/location_post/

它说

An FQL table that returns Posts that have locations associated with them and that satisfy at least one of the following conditions:

  • you were tagged in the Post
  • a friend was tagged in the Post
  • you authored the Post
  • a friend authored the Post

Note: This query can process a large amount of data. In order to ensure that a manageable amount of data is returned within a reasonable timeframe, you should specify a recent timestamp to narrow the results.

Return posts within 10,000 meters of a given location:

SELECT id, page_id
FROM location_post
WHERE distance(latitude, longitude, '37.86564', '-122.25061') < 10000

关于facebook-graph-api - 如何在某个地点附近找到过去签到过的 friend ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10904706/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com