in FBSDKGamingServicesKit/FBSDKGamingServicesKit/Internal/ShareTournamentDialogURLBuilder.swift [57:75]
func url(withPathAppID appID: String, score: Int) -> URL? {
var components = URLComponents()
components.scheme = URLScheme.https.rawValue
components.host = Constants.host
components.path = "\(Constants.path)\(appID)"
if case let .update(tournament) = self {
components.queryItems = [
URLQueryItem(name: QueryKeys.tournamentID, value: tournament.identifier),
URLQueryItem(name: QueryKeys.score, value: "\(score)"),
URLQueryItem(name: QueryKeys.payload, value: tournament.payload),
]
}
if case let .create(config) = self {
components.queryItems = queryItems(for: config, score: score)
}
return components.url
}