2013-05-07 56 views
0

我想从公开活动中获取地址,有时会返回地理空间,有时是完整地址,有时候只是venuename。我在另一个线程上发现应用程序身份验证令牌存在一些问题。所以user-auth-token可能不会获得地址和app-auth-token。有没有办法总是得到地址?获取活动/位置/页面 - 地址

+0

你能给3个例子完整的网址查询,这只是返回geocords,完整的地址,venuename? – 2013-05-08 04:02:31

+0

这一个返回正确的:eid:533009473416123 /只是geocords:389089187841555 /只是locationname:634540989894031 - 我不知道为什么这不是在这个特殊事件上工作,他们大多数都是好的..是的,他们都是公开的。 – 2013-05-09 19:47:45

回答

0

对于bug修复(https://developers.facebook.com/bugs/554303337923393)之前临时的目的,你可以这样做:

select location from page where page_id IN (SELECT venue.id from event where eid=533009473416123) 

图形API浏览例如:

https://developers.facebook.com/tools/explorer?fql=select%20location%20from%20page%20where%20page_id%20IN%20(SELECT%20venue.id%20from%20event%20where%20eid%3D533009473416123)

必须使用用户访问令牌,因为APP访问令牌有时只返回会场名称而不是会场ID,例如事件ID 634540989894031.

+0

好的,谢谢你的回答,但我不想让用户让我获得create_event访问权限。 – 2013-05-10 12:43:38

+0

@AntonKohlbauer不,它不需要create_event权限,我使用基本许可测试了Graph API Explorer上的查询。 – 2013-05-10 12:58:05