Documentation

GetPlayFabIDsFromFacebookInstantGamesIds

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

Request Details

GetPlayFabIDsFromFacebookInstantGamesIdsRequest
Request Properties
FacebookInstantGamesIds (required) List<String>

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

POST https://{{TitleID}}.playfabapi.com/Client/GetPlayFabIDsFromFacebookInstantGamesIds
    Content-Type: application/json
    X-Authentication: <user_session_ticket_value>
{
  "FacebookInstantGamesIds": [
    "1114685845316172",
    "1114685845316173"
  ]
}
        

Response Details

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

GetPlayFabIDsFromFacebookInstantGamesIdsResult
Result Properties
Data List<FacebookInstantGamesPlayFabIdPair>

Mapping of Facebook Instant Games identifiers to PlayFab identifiers.

Sample Response

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

Authentication

SessionTicket

Possible Error Codes

Name Code
AccountNotFound 1001