我使用此查询:
SELECT id, author_uid, message, latitude, longitude, timestamp FROM location_post
WHERE author_uid IN
(SELECT uid2 FROM friend WHERE uid1=me()) ORDER BY timestamp DESC";
我的问题是如何从海报中显示名称,因为没有SELECT名称FROM location_post。我希望有人可以帮助我。
谢谢!
答案 0 :(得分:0)
获取author_id并制作新的FQL或图形api请求
让我们说author_id是123。
FQL:
SELECT name FROM user WHERE uid = 123
图谱API
http://graph.facebook.com/123?fields=name
答案 1 :(得分:0)
您需要以multiquery:
的身份执行此操作{"locations":"SELECT id, author_uid, message, latitude,...",
"authors":"SELECT name, id FROM profile WHERE id IN
(SELECT author_uid FROM #locations")}