ios - 无法在 iOS 中获取所有 Facebook 好友

标签 ios facebook facebook-friends

在我的应用程序中,我可以选择获取所有 Facebook 好友。所以我想要我所有的 Facebook friend 。但是能够得到所有的 friend 。 我正在使用 API 版本 v2.4,当我在 Facebook 图表中检查 API 时,探索它给我这样的响应:

图形 API:v2.4/me?fields=friends

响应:

{
      "friends": {
        "data": [
        ],
        "summary": {
          "total_count": 200
        }
      },
      "id": "1700734103483027"
}

总数正确,但列表未显示。 Graph API 给出这样的调试消息“在 API v2.0 及更高版本中仅返回安装此应用程序的 friend 。total_count 汇总表示 friend 总数,包括未安装该应用程序的 friend 。了解更多” .

那么我怎样才能得到所有的 Facebook 好友呢?

最佳答案

Facebook 更改了权限。 您无法获得所有 Facebook 好友。

您只能找到正在使用您的应用程序的好友。

来自 Facebook 文档:

https://developers.facebook.com/docs/facebook-login/permissions/v2.4

user_friends

Provides access the list of friends that also use your app. These friends can be found on the friends edge on the user object.

In order for a person to show up in one person's friend list, both people must have decided to share their list of friends with your app and not disabled that permission during login. Also both friends must have been asked for user_friends during the login process. Review

Your app may use this permission without review from Facebook. Common Usage

Use the list of friends to create a social experience in your app.

也在

中进行了描述

read_custom_friendlists

Provides access to the names of custom lists a person has created to organize their friends. This is useful for rendering an audience selector when someone is publishing stories to Facebook from your app.

This permission does not give access to a list of person's friends. If you want to access a person's friends who also use your app, you should use the user_friends permission.

This permission will also not help you invite a person's friends to use your app. To learn more about how to invite friends to an app, please see our FAQs.

This permission also does not give the list of friends who are part of a friendlist. It only gives access to the names of the lists.

This permission was called read_friendlists before v2.3

关于ios - 无法在 iOS 中获取所有 Facebook 好友,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31911477/

相关文章:

iphone - Objective-c - XMLReader 无法正常工作

javascript - FB.Canvas.scrollTo 和 FB.Canvas.setAutoGrow 适用于 Windows 但不适用于 Mac

ios - 我的 iPhone 应用程序使用 Facebook SDK for iOS v2.0。我的应用程序会在 2013 年 6 月损坏吗?

facebook - 在 FB 图形 API 中获取 friend 的 friend

ios facebook 获取玩相同应用程序的好友列表

Facebook 'Friends.getAppUsers' 使用图形 API

ios - React Native 应用程序未显示在 iOS 的设置中

ios - 如何复制 ios 版本的 iPhone?

ios - 如何安全地解包我的核心数据对象

objective-c - 在 Facebook 上张贴照片