Facebook的相册和照片不可访问了所有必要的许可(图形API) [英] Facebook Album and Photos unaccessible with all needed permission (GRAPH API)

查看:561
本文介绍了Facebook的相册和照片不可访问了所有必要的许可(图形API)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Andr​​oid应用我下载的用户指定的好友相册列表。

In my android application I download album list of specified friend of user.

我有权限如下:friends_about_me,friends_photo_video_tags,friends_photos,user_photos。

I've got permission as follows:friends_about_me, friends_photo_video_tags, friends_photos, user_photos.

对于一些朋友它完美的作品,我能下载完整列表和所有的照片。但对于一些它返回空数组。这是朋友的隐私策略的情况下或者这是FB错误?

For some friends it works perfectly and I am able to download full list and all photos. But for some it returns empty array. Is this a case of friend privacy policy or this is FB bug?

如果我尝试查看通过FB页面或通过FB Android应用程序,它工作正常。这个朋友的专辑

If i try to view this friend albums via FB page or via FB android app it works fine.

编辑:我确实从FB页面获得用户的相册ID从URL,并将其粘贴到图形API浏览器并返回false我

I did get user album id from URL from FB page and paste it to GRAPH API explorer and it returned false to me.

问题是:怎样做才能让专辑列表和专辑照片

Question is: what to do to get album list and album photos?

推荐答案

(目前)在帐户>隐私设置>应用程序和网站编辑设置,有一种方法为用户设置哪些信息你的应用程序可以通过他们的朋友访问,而不管他们的权限授予的朋友到应用程序。

Privacy Settings

(Currently) under Account > Privacy settings > Apps and Websites "Edit your settings", there is a way for users to set what information your app can access through their friends, regardless of what permissions their friends grant to the app.

如果你想看到专辑的人有未选中我的照片,那么他们必须直接授予应用程序的权限(如下所述)。默认情况下它被选中,你的应用程序可以访问用户的照片。如果未选中该框,那么有没有办法让你的应用程序,以获取他们的照片,没有他们加入你的应用程序,让您的访问。

If the person you are trying to see albums from has unchecked "My Photos", then they have to grant the app permission directly (described below). By default it is checked, and your app can access the user's photos. If the box is unchecked, then there is no way for your app to get their photos without them adding your app and giving you access.

使用href="https://www.facebook.com/about/details/">改变正在推广到Facebook的隐私设置的

With the changes that are being rolled out to facebook's privacy settings, these settings are likely to be moved, but hopefully the functionality will still be around.

更新 8/30 - 我的Facebook帐户只是与上面提到的变化启用。该对话框是一样的,只是在不同的标签:帐户>隐私设置>应用程序和网站>人们如何把你的信息给他们的应用程序使用修改设置。一些文字进行了更新和一些选项略有不同,但在其他的设置是相同的。

Update 8/30 - My facebook account was just enabled with the changes referred to above. The dialog is the same, just under a different label: Account > Privacy Settings > Apps and Websites > How people bring your info to apps they use "Edit settings". Some of the text was updated and some options are slightly different, but otherwise the settings are the same.

配置两个帐户,像这样:

Configure two accounts like so:

帐户1:

  1. 两组为朋友,其中之一被称为限制
  2. 相册(除了档案图片)设置,这样只有朋友;除了受限制的组可以看到它们。资料图片设置为只有朋友。
  3. 在我的照片中选中通过朋友访问信息
  4. 在非常宽松的权限的应用程序( friends_about_me,friends_photo_video_tags,friends_photos,user_photos 等等)
  1. Two groups for friends, one of which is called "restricted"
  2. Photo albums (except for 'Profile pics') set so that 'Friends only; except Restricted group' can see them. Profile pics is set to friends only.
  3. "My photos" unchecked in "Info accessible through friends"
  4. Very liberal permissions to app (friends_about_me, friends_photo_video_tags, friends_photos, user_photos among others)

账户2:

  1. 在朋友的帐户1
  2. 授予相同的权限的应用程序

通过翻转隐私控制(检查/取消选中有问题的复选框,授予/为应用程序的帐户1撤消特权,并添加/删除帐户2受限组)的账户1和尝试访问该帐户的照片专辑,你会发现,与我的照片复选框,在账户1:

By toggling privacy controls (checking/unchecking the checkbox in question, granting/revoking privileges for the app on Account 1, and adding/removing Account 2 to the "Restricted" group) on Account 1 and trying to access that account's photo albums, you will find that with the My Photos checkbox in account 1:

  • 在经过
    • 与使用账户2 friends_photos 权限可以看到看到账户的任何照片的任何应用程序2
    • Checked
      • Any app with the friends_photos permission used by Account 2 can see any photos visible to Account 2
      • 在用朋友的账户1的应用程序不能访问任何照片,除非...
      • 除非帐户1增加了您的应用程序,并授予 user_photos 许可。在这种情况下,应用程序可以访问可见账户2过任何相​​册。
      • Apps used by friends of Account 1 cannot access any photos, unless...
      • UNLESS Account 1 has added your app and granted the user_photos permission. In this case the app has access to any albums visible to Account 2.

      所以,唯一的办法账户2可以访问帐户1的相册( /<用户id> /张专辑)的我的照片未选中状态是当账户2 没有的中的限制群帐户1具有与 user_photos 权限启用应用程序。当账户2的的限制,但可以看到的唯一专辑(预期)的档案图片之一。当账户1或者删除应用程序或使其不授予 user_photos 的权限,在 /张专辑连接返回一个空数组

      So the only way Account 2 can access Account 1's albums (/<userid>/albums) with the "My photos" box unchecked is when Account 2 is not in the "restricted" group and Account 1 has the app enabled with the user_photos permission. When Account 2 is restricted, the only album it can see is (as expected) the 'Profile pictures' one. When Account 1 either deletes the app or enables it without granting the user_photos permissions, the /albums connection returns an empty array.

      因此​​,尽管它可能看起来像你得到一个空数组返回一个错误,它实际上是完全确定的和预期的行为。最重要的是它是从用户的隐私的角度来看不错,Facebook的让用户控制此设置。

      So while it may seem like an error that you get an empty array back, it's actually completely deterministic and expected behavior. On top of that it's good from a user privacy standpoint that Facebook gives users control over this setting.

      您不知道。或者,你不应该,反正。如果他们已经采取了时间,通过他们的朋友来禁止访问他们的照片,你应该尊重他们的隐私。

      You don't. Or, you shouldn't, anyway. If they've taken the time to disable access to their photos through their friends, you should respect their privacy.

      这就是说,它在技术上始终的可能的到到facebook.com登录作为他们的一个朋友,看到照片,他们已经与他们的朋友而不是与他们的朋友的应用程序共享。从理论上讲,你可以写一个网络爬虫,将自动执行这样的任务,虽然它是针对Facebook的服务条款和你的将是一个不好的人这样做的:

      That said, it is technically still possible to log in to facebook.com as one of their friends and see the photos they've shared with their friends but not with their friends' apps. In theory you could write a web crawler that would automatically perform such a task, although it is against facebooks terms of service and you would be a Bad Person for doing so:

      [3.2]您不会收集用户的内容或信息,或以其他方式访问Facebook,采用自动化手段(如收割机器人,机器人,蜘蛛,或刮刀)未经我们许可。

      [3.2] You will not collect users' content or information, or otherwise access Facebook, using automated means (such as harvesting bots, robots, spiders, or scrapers) without our permission.

      这篇关于Facebook的相册和照片不可访问了所有必要的许可(图形API)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆