Documentation

LinkGameCenterAccount

Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account

Request Details

LinkGameCenterAccountRequest
Request Properties
ForceLink Boolean

If another user is already linked to the account, unlink the other user and re-link.

GameCenterId (required) String

Game Center identifier for the player account to be linked.

PublicKeyUrl String

The URL for the public encryption key that will be used to verify the signature.

Salt String

A random value used to compute the hash and keep it randomized.

Signature String

The verification signature of the authentication payload.

Timestamp String

The integer representation of date and time that the signature was created on. PlayFab will reject authentication signatures not within 10 minutes of the server's current time.

POST https://{{TitleID}}.playfabapi.com/Client/LinkGameCenterAccount
    Content-Type: application/json
    X-Authentication: <user_session_ticket_value>
{
  "GameCenterId": "2998h2998f0b000d0993"
}
        

Response Details

LinkGameCenterAccountResult
Result Properties

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8


Authentication

SessionTicket

Possible Error Codes

Name Code
AccountAlreadyLinked 1011
LinkedAccountAlreadyClaimed 1012