Facebook API获取某些朋友无法使用的朋友相册 [英] Facebook API get friend albums not working for some friends

查看:81
本文介绍了Facebook API获取某些朋友无法使用的朋友相册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下FQL查询

I'm using the following FQL query

'select src,src_big from photo where aid in(select aid from album where owner=' + contactId + ' and type="profile")'

但是它对我约50%的朋友有效,其余的对它无效. 这不是权限问题,因为该行为对每个朋友都有效(如果对一个朋友有效)-始终对他有效.

But it works for about 50% of my friends, and the rest - it doesn't. Its not a permissions problem because the behavior persists per friend, if it works for a friend - it always works for him.

  1. 这是Facebook上的事情吗,用户可以选择阻止应用获取照片吗? (例如/me/friends中缺少一些朋友时发生的情况)
  2. 这很奇怪,因为它不适用于太多朋友.
  3. 我使用图谱API尝试了相同的操作,并且发生了相同的事情(有些用户可以,其余用户则不然)
  1. Is this a Facebook thing, where a user can choose to prevent apps from getting his photos? (like what happens when some friends are missing from /me/friends )
  2. It will be odd, because it doesn't work for too many friends..
  3. I tried the same with the graph API, and the same happens (some users ok, rest are not)

这是什么?

预先感谢

推荐答案

查看您帐户的配置文件设置.您是否在左侧看到应用程序"链接?

Take a look at the Profile settings of your account. Do you see the Apps link on the left?

其中一部分显示其他人使用的应用"

There's on portion there that says "Apps others use"

在Facebook上可以看到您的信息的人可以在他们使用应用程序时随身携带这些信息.这使他们的体验更好,更社交.使用以下设置可以控制人们在使用应用程序,游戏和网站时可以带来的信息类别.

People on Facebook who can see your info can bring it with them when they use apps. This makes their experience better and more social. Use the settings below to control the categories of information that people can bring with them when they use apps, games and websites.

生物

我的视频

生日

我的链接

家庭与人际关系

我的笔记

感兴趣

家乡

宗教和政治观点

当前城市

我的网站

教育与工作

如果我在线

活动,兴趣,我喜欢的事物

Activities, interests, things I like

我的状态更新

我的应用活动

我的照片

如果您不希望应用程序和网站访问其他类别的信息(例如您的朋友列表,性别或您公开的信息),则可以关闭所有平台应用程序.但是请记住,您将无法自己使用任何游戏或应用程序.

If you don't want apps and websites to access other categories of information (like your friend list, gender or info you've made public), you can turn off all Platform apps. But remember, you will not be able to use any games or apps yourself.

如果您的朋友对此进行了检查.我相信,即使您已为正在使用的应用程序启用了"friends_photos"权限,应用程序也将无法通过access_tokens获取朋友的图像.

If your friends have that checked. I believe apps won't be able to get your friends' images through your access_tokens even if you have allowed the "friends_photos" permission enabled for the app that you're using.

我做了一个实验,显然我发现我必须和我的朋友一起才能访问该应用程序,以允许该应用程序在"user_photos"权限下访问其照片.只有这样,我才能使用具有"friends_photos"权限的访问令牌来获取他们的照片.

I did an experiment and apparently I found that I must get my friend to also access the app to allow the app to access their photos under the "user_photos" permission. only then can I get their photos using my access token with the "friends_photos" permission.

不确定这对您是否有意义.

Not sure if this makes sense to you.

这篇关于Facebook API获取某些朋友无法使用的朋友相册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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