FriendsAPI
public enum FriendsAPI
Caseless enumeration with static methods to send Friends Requests
-
Sends a request to get friends from the API.
Declaration
Swift
public static func getFriends(leaderboard: String, completion: ResponseCompletion<[FacebookFriend]> = nil)
Parameters
leaderboard
Leaderboard.
completion
The closure to be executed once the request has finished.
-
Sends a request to connect with friends.
Declaration
Swift
public static func connectToFriends(facebookAuthToken token: String, completion: ResponseCompletion<Bool> = nil)
Parameters
token
Facebook authentication token.
completion
The closure to be executed once the request has finished.