无法使用 FQL 检索标记的照片信息

发布于 2024-10-17 15:52:13 字数 246 浏览 2 评论 0原文

我很难运行此 FQL 查询。

SELECT pid, src_big FROM photo WHERE pid 
IN (SELECT pid FROM photo_tag WHERE subject=me())

photo_tag 表返回一个比通常的照片 pid 长得多的字符串 pid。

内部 SELECT 语句返回正确数量的标记照片。不过,我想获得有关这些照片的更多信息。有什么想法吗?

I'm having a hard time running this FQL query.

SELECT pid, src_big FROM photo WHERE pid 
IN (SELECT pid FROM photo_tag WHERE subject=me())

The photo_tag table returns a pid that is a much longer string than the usual photo pid.

The inner SELECT statement returns the right number of tagged photos. However, I'd like to get more info on those photos. Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拿命拼未来 2024-10-24 15:52:13

您需要哪些信息?如果您想了解更多信息,以下是您可以从照片表中获取的完整数据列表:
http://developers.facebook.com/docs/reference/fql/photo/

关于 pid:是的,那不是“真实的”照片 ID。我认为你必须选择“object_id”列作为真实ID。
“pid 仅对于给定用户而言是唯一的。” - 所以我猜你无论如何都无法真正使用它。

只需包含我的链接中您需要的那些列,如下所示:

SELECT pid, src_big, object_id FROM photo...

which info do you need? if you want more infos, here is the full list of data you can get from the photo table:
http://developers.facebook.com/docs/reference/fql/photo/

about the pid: yes, that is not the "real" photo id. i think you have to select the column "object_id" for the real id.
"The pid is unique only for a given user." - so you cannot really work with it anyway, i guess.

just include those columns from my link you need, like this:

SELECT pid, src_big, object_id FROM photo...
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文