FQL - 查询照片表返回空集

发布于 2024-10-31 05:55:39 字数 319 浏览 0 评论 0原文

我在从照片表中检索任何数据时遇到问题。

我已经能够成功查询相册和用户表,但是当我查询照片时,它返回一个空集。 的查询:

SELECT pid FROM photo WHERE owner=ownerID

我的应用程序当前具有以下权限:

  • read_streamoffline_accesspublish_streamuser_photosuser_status
  • 我一直在使用
  • 有什么想法

吗?提前致谢。

I'm having a problem retrieving any data from the photo table.

I have been able to query the album and user tables successfully, but when I query photo, it returns an empty set. This is the query I have been using:

SELECT pid FROM photo WHERE owner=ownerID

My application currently has the following permissions:

  • read_stream
  • offline_access
  • publish_stream
  • user_photos
  • user_status

Any ideas? Thanks in advance.

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

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

发布评论

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

评论(1

濫情▎り 2024-11-07 05:55:39

好吧,我从来没有让这个查询工作过,但我确实设法通过查询这个表获得某种结果。

当我使用 Graph API 发布到“me/photos”来上传照片后,收到的响应是刚刚发布的照片​​的“object_id”。因此,我创建了以下查询:

SELECT link FROM photo WHERE object_id=OBJECT_ID_RECEIVED

如果我获得该照片的所有者,它与我在上一个查询中使用的照片相同,但我仍然不知道为什么它不起作用。但至少我可以用这个新的东西来实现我需要做的事情。

Well, I never got this query to work but I did manage to get some sort of result from querying this table.

After I upload a photo by posting to "me/photos" using the Graph API the response received is the "object_id" for the photo that has just been posted. So I created the following query:

SELECT link FROM photo WHERE object_id=OBJECT_ID_RECEIVED

If I get the owner for that photo, it's the same one I had been using in my previous query and I still have no idea why it's not working. But at least I can achieve what I need to do with this new one.

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