Graph API - API上传的照片不可见
我遇到以下问题。
使用 graph api 我可以创建一个相册(正是我的应用程序的相册)。将照片上传到已创建的相册也没有问题(由于之前的操作,我得到了该相册的帮助)。上传照片后我也得到了照片的 pid。
当我想要获取相册的照片时,问题就开始了。 Graph API 返回一个空数组。当我进入应用程序页面时,我也没有看到任何新专辑。但是,如果我转到应用程序页面的墙,我会在“最后添加的照片”列表中看到这张照片。我可以放大上传的照片,甚至可以看到它位于正确相册中的信息。还有另一件事。如果我选择这张专辑,Facebook 会注意到这是一张空专辑。
我并不是说这些操作做得不好,因为如果我使用 pid 请求特定照片(我从上传照片操作中知道),我会得到正确的结果 - 照片存在。不幸的是,将专辑的所有 pid 存储在数据库中并对每个 pid 执行单独的请求确实很不舒服。
I`m geting the following problem.
Using graph api I can create an album (exactly photo album of my app). There is no problem also to upload photo to already created album (I have aid of this album as result of previous operation). After uploading photo I get also pid of the photo.
The problem starts now at the moment when I would like to get photos of the album. Graph API returns an empty array. Also I don't see any new album when I go to app page. However if I go to wall of my app page, I see this photo on "last added photos" list. I can enlarge uploaded photo, and I even see info that it's located in the proper album. There is another wird thing. If I choose this album, Facebook notice me that it`s an empty album.
I doesn't mean those operations are not done well, because if I request for a particular photo using pid (which I know from upload photo operation) I get a proper result - photo exist. Unfortunately it's really uncomfortable to store all pids of album in data base and perform separated request to each of it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果 Facebook 应用程序处于“沙盒”模式,则图像仅对管理员/开发人员/测试人员用户可见。公共用户将看不到这些图像。
关闭沙盒模式为我解决了这个问题。
If the Facebook App is in "sandbox" mode, the images will only be visible to the admin/developers/tester users. Public users will not see the images.
Turning sandbox mode off fixed this issue for me.