<!--
{
  "availability" : [
    "iOS: 4.1.0 - 8.0.0",
    "iPadOS: 4.1.0 - 8.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.8.0 - 10.10.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 3.0.0 - 3.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKLocalPlayer/loadFriendsObsoleted(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKLocalPlayer(im)loadFriendsWithCompletionHandler:"
  },
  "title" : "loadFriendsObsoleted(completionHandler:)"
}
-->

# loadFriendsObsoleted(completionHandler:)

Retrieves a list of player identifiers for the local player’s friends.

```
func loadFriendsObsoleted(completionHandler: (@Sendable ([String]?, (any Error)?) -> Void)? = nil)
```

## Parameters

`completionHandler`

A block to call when the request completes.

    The block receives the following parameters:

- friendIDs: An array of `NSString` objects containing the player identifiers for the players who are friends of the local player. If an error occurs, this value can be non-`nil`. In that case, the array contains the data that GameKit downloads before the error occurs.
- error: If an error occurs, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is `nil`.

## Discussion

After this call completes, the [`friends`](/documentation/GameKit/GKLocalPlayer/friends) property of the shared local player object is the same list of players that the completion handler returns.

## See Also

[`friends`](/documentation/GameKit/GKLocalPlayer/friends)

The player identifiers for the local player’s friends.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)