简体   繁体   English

如何在Facebook iOS SDK中获取Facebook用户的完整朋友列表

[英]How to fetch Facebook user's full friend list in Facebook iOS SDK

I had a question concerning the Facebook iOS SDK that has been troubling me ever since i started my iOS project so I thought I could post it here to see if any of you had wisdom to share on this matter. 自从我启动iOS项目以来,我就一直在困扰着有关Facebook iOS SDK的问题,所以我想我可以在这里发布它,看看你们中是否有人可以分享这个问题。

For my Facebook connected app to function properly I need to have access to the Facebook user's complete friend list along with their names, ids and profile pictures. 为了使我的Facebook连接的应用程序正常运行,我需要访问Facebook用户的完整朋友列表以及他们的姓名,ID和个人资料图片。 After some intensive research I was surprised to learn that in version 2.0 of the Graph API Facebook has made it so that you can only retrieve a friend list of your friends who are currently using the app and have approved the app. 经过一些深入的研究,我惊讶地发现Facebook在Graph API的2.0版中做到了这一点,因此您只能检索当前正在使用该应用程序并已批准该应用程序的朋友的朋友列表。 This kind of data doesn't really work for my app as the main point is that you are met by your friend list as opposed to an empty list with only a few people who have approved the app. 这种数据对我的应用程序并不真正有效,因为要点是与朋友列表相遇而不是只有少数人批准该应用程序的空白列表。

My question is if there is any possible way for me to have access to the user's full friend list and display it in a table view with their profile picture without every single one of them having to approve the app. 我的问题是,是否有任何可能的方式可以让我访问用户的完整朋友列表,并将其显示在带有个人资料图片的表格视图中,而无需每个人都批准该应用程序。 I don't mind if it is a complicated solution. 我不介意这是一个复杂的解决方案。 The reason I ask this is because i have seen several apps that can fetch full friends lists such as: 我之所以这样问,是因为我看过几个可以获取完整好友列表的应用,例如:

http://www.connect.com http://www.connect.com

and

http://www.birthdayboardapp.com http://www.birthdayboardapp.com

and they must have found a way to do it as the way Connect displays the user's friend list is exactly the way I would like to do it ie in an iOS contacts app style way. 并且他们一定已经找到了一种方法,因为Connect显示用户的朋友列表的方式正是我想要的方式,即以iOS联系人应用风格的方式。

I would be grateful for any guidance or solutions, 对于任何指导或解决方案,我将不胜感激,

Thanks Again! 再次感谢!

PS Here are some questions I have previously looked at but do not suggest possible workarounds PS这是我之前看过的一些问题,但并不建议可能的解决方法

Facebook Graph Api v2.0+ - /me/friends returns empty, or only friends who also use my app Facebook Graph Api v2.0 +-/ me / friends返回空白,或仅返回也使用我的应用程序的朋友

Get ALL User Friends Using Facebook Graph API - Android 使用Facebook Graph API获取所有用户朋友-Android

There are no workarounds, if it works in some other App then it just means that they are still using a Facebook App created before end of April 2014. They will stop getting the full friendlist after April 2015, when v1.0 Apps will get upgraded. 没有解决方法,如果它可以在其他应用程序中工作,则仅表示他们仍在使用2014年4月下旬之前创建的Facebook应用程序。他们将在2015年4月(v1.0应用程序将升级)后停止获取完整的好友列表。 。

There are ways to get the whole friendlist like invitable_friends and taggable_friends , but those endpoints are supposed to get used for very specific tasks (for inviting in games and for tagging). 有多种方法可以获取整个好友 列表 ,例如invitable_friendstaggable_friends ,但是这些端点应该用于非常具体的任务(游戏中的邀请和标记)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM