Facebook图表api..get朋友的朋友 [英] facebook graph api..get friends of friends

查看:132
本文介绍了Facebook图表api..get朋友的朋友的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用FB图表API来获取我朋友的朋友列表:

  https://图.facebook.com /< ID> /朋友的access_token = LT;令牌GT; 

现在奇怪的是,这适用于我的一些朋友,不适合其他人使用。有人可以告诉我为什么会发生这种情况吗?



如果不起作用,我会收到以下消息:
不能查询YYYYYY的所有朋友
只能使用适当的权限



查找已登录用户(XXXXX)或
登录用户的朋友

我重复一遍,我可以使用上述URL获取一些朋友的朋友列表。
这里有什么权限?

解决方案

隐私权限。



作为用户,我控制谁可以看到我的朋友列表。如果我选择只有朋友,那么只有我的朋友可以看到我的列表,而不是朋友的朋友



登录Facebook,右键点击帐户 - >隐私设置,
然后点击在Facebook上连接下的查看设置



看到你的朋友列表是什么控制这个。

编辑:对不起,不得不考虑一下。



可以通过标准的Facebook网页界面查看您朋友的朋友。你的应用不是你即使您授予了您的帐户的应用访问权限,您的朋友也没有。在这种情况下,除非他们设置为每个人,否则你不会回去你朋友的朋友。你的应用程序不是朋友的朋友。



我相信是原因。另一个原因可能是他们的API因为错车而闻名。您可以随时打开 http://bugs.developers.facebook.net/ 的错误报告,如果我的假设是正确的,有人会让你知道。


I am using the FB graph api to get a list of my friends' friends using:

https://graph.facebook.com/<id>/friends?access_token=<token>

Now the weird thing is that this works for some of my friends and does not work for some others. Could somebody tell me why this is happening and a possible fix?

In cases where it does not work, I get the following message: "Can't lookup all friends of YYYYYY. Can only lookup for the logged in user (XXXXX), or friends of the logged in user with the appropriate permission"

And I repeat, I AM ABLE to get friend lists of some of my friends using the above URL. What permissions are being mentioned here?

解决方案

Privacy permissions.

As a user, I control who can see my friends list. If I select "Friends only" then only my friends can see my list, not "friends of friends"

Log into facebook, on the upper right click on Account -> Privacy settings, then Click on "View Settings" under "Connecting on Facebook"

"See your friends list" is what controls this.

Edit: Sorry, had to think about that for a minute.

You can see your friend's friends via the standard Facebook web UI. Your app is not you. Even though you've granted the app access to your account, your friends have not. In that case, you're not going to get back your friend's friends unless they have it set to "Everyone". Your app is not a friend of a friend.

I believe that's the reason. The other reason could be that their API is renown for being buggy. You could always open a bug report on http://bugs.developers.facebook.net/ and if my supposition is correct, someone will let you know.

这篇关于Facebook图表api..get朋友的朋友的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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