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
leaderboardLeaderboard.
completionThe 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
tokenFacebook authentication token.
completionThe closure to be executed once the request has finished.
View on GitHub
FriendsAPI Enumeration Reference