Documentation

GetPlayFabIDsFromFacebookIDs

Retrieves the unique PlayFab identifiers for the given set of Facebook identifiers.

Request Details

GetPlayFabIDsFromFacebookIDsRequest
Request Properties
FacebookIDs (required) List<String>

Array of unique Facebook identifiers for which the title needs to get PlayFab identifiers.

POST https://{{TitleID}}.playfabapi.com/Server/GetPlayFabIDsFromFacebookIDs
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "FacebookIDs": [
    "857498576495",
    "759374651209"
  ]
}
        

Response Details

For Facebook identifiers which have not been linked to PlayFab accounts, null will be returned.

GetPlayFabIDsFromFacebookIDsResult
Result Properties
Data List<FacebookPlayFabIdPair>

Mapping of Facebook identifiers to PlayFab identifiers.

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "code": 200,
  "status": "OK",
  "data": {
    "Data": [
      {
        "FacebookId": "857498576495",
        "PlayFabId": "5a446c83645201"
      },
      {
        "FacebookId": "759374651209",
        "PlayFabId": "6345cd25a6c7cc"
      }
    ]
  }
}

Authentication

SecretKey

Possible Error Codes

Name Code
InvalidPublisherId 1126