2014-03-24 17 views
0

我試圖獲取發佈在某個地理點附近的故事的所有post_ids。使用FQL和「distance_meters」訪問「location_post」數據

雖然通過Facebook的FQL文檔閱讀中,我遇到了這個例子: https://developers.facebook.com/docs/reference/fql/location_post/

SELECT ... FROM location_post WHERE latitude = ... AND longitude = ... AND distance_meters = ... 

當我真正嘗試運行我的查詢,我得到

message": "(#602) distance_meters is not a member of the location_post table." 

難道我做錯了什麼?

謝謝!

回答

0

FB文檔在這裏不準確(再次...)。實際上,有此錯誤報告:https://developers.facebook.com/x/bugs/629578257122514/

您可以使用下面的查詢模式:

select author_uid, id from location_post where distance(latitude, longitude, '52.516412', '13.377681') < 1000 

這會給你從你或你的朋友在柏林千米內派人四處勃蘭登堡門的所有帖子。 ..