获取我朋友的照片时出现 Facebook FQL 错误
我正在创建一个应用程序,用于获取按创建日期排序的朋友的照片,因此我使用以下 FQL 来获取照片。
SELECT src_big_width,src_big_height, caption, owner, pid, src_big , src_small ,aid, created FROM photo WHERE aid IN (SELECT aid FROM album WHERE owner IN (SELECT uid2 FROM friend WHERE uid1=me()))
ORDER BY created DESC LIMIT 0,1000
但我的个人资料中看到一些朋友发布了新照片,但它没有出现在我的个人资料中 轮廓。我的 FQL 中是否有任何错误或错误?
I am creating an applications that gets my friend's photos sorted by created date so I use the following FQL to get the photo.
SELECT src_big_width,src_big_height, caption, owner, pid, src_big , src_small ,aid, created FROM photo WHERE aid IN (SELECT aid FROM album WHERE owner IN (SELECT uid2 FROM friend WHERE uid1=me()))
ORDER BY created DESC LIMIT 0,1000
But I my profile I see some friend posting a new photo, but it does not appear in my
profile. Is there any error or mistake in my FQL?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的访问令牌是否具有
friends_photos
权限?您需要它来访问朋友的照片。另外,请检查您是否可以使用 Graph API 查看照片="http://developers.facebook.com/tools/explorer" rel="nofollow">Graph API explorer 检查那里是否有可以通过您的 access_token 访问的数据。这将有助于排除 FQL 查询的问题。
Does your access token have the
friends_photos
permission? You need this to access the photos of a friend.Also, check that you can see the photos in the Graph API by using the Graph API explorer to check there is data there which can be accessed via your access_token. This will help to rule out issues with your FQL query.