Facebook graph api and FQL mismatch
Possible Duplicate:
Graph api and equivalent FQL method give different results?
I'd like to query an event on facebook filtered by time and location.
According to the graph api, an event has a field called venue, which is an object that has latitude and longitude.
http://developers.facebook.com/docs/reference/api/event/
However, according to the facebook query language, the event table has a field called venue, which is a string .
http://developers.facebook.com/docs/reference/fql/event/
There doesn't seem to be a venue table of which the venue string could be a foreign key.
How could I get a list of venues near a coordinate with FQL?
This is a bug in the documentation; thanks for pointing it out! Documentation has been updated to reflect the fact that 'venue' actually contains the fields in the venue object that's returned by the Graph API.
You can search for locations using the Graph API's /search endpoint. For example, you can search for a place related to "coffee" with the following query https://graph.facebook.com/search?q=coffee&type=place¢er=37.76,-122.427&distance=1000&access_token=... See the Searching section in the Graph API documentation for more information.
链接地址: http://www.djcxy.com/p/5574.html上一篇: 使用没有访问令牌的Facebook Graph API获取公共页面状态
下一篇: Facebook图形API和FQL不匹配