question

shepkinvictor avatar image
shepkinvictor asked

Wrong response for "GetPlayFabIDsFromSteamIDs" request

When i try to get PlayFabIDs from SteamIDs by Unreal SDK call or by api.playfab.com i getting wrong respons. I'm awaiting in response something like that:

{
  "code": 200,
  "status": "OK",
  "data": {
    "Data": [
      {
        "SteamStringId": "857498576495",
        "PlayFabId": "5a446c83645201"
      },
      {
        "SteamStringId": "759374651209",
        "PlayFabId": "6345cd25a6c7cc"
      }
    ]
  }
}
but actually i got this:
{ "code": 200, "status": "OK", "data": { "Data": [ { "SteamId": 76561198067803150, "SteamStringId": "76561198067803150" } ] }, "CallBackTimeMS": 812 } How i can get PlayFabIDs from SteamIDs? Is it possible that is problem on your side?
apisdata
3 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

unbrokencraig avatar image unbrokencraig commented ·

Hi, I'm having a similar issue to the original post.

I'm passing in SteamID 76561198449303158, but the response always comes back with SteamID 76561198449303150 and no PlayFab ID.

With another SteamID 76561198030810699, I get 76561198030810700 in the response, and again no PlayFabID.

0 Likes 0 ·
brendan avatar image brendan unbrokencraig commented ·

That's not what I'm getting back:

Host: 5f4.playfabapi.com
Content-Type: application/json
X-SecretKey: [removed]
{
  "SteamStringIDs": [
    "76561198449303158",
    "76561198030810699"
  ]
}

Returns:

{
    "code": 200,
    "status": "OK",
    "data": {
        "Data": [
            {
                "SteamId": 76561198449303158,
                "SteamStringId": "76561198449303158"
            },
            {
                "SteamId": 76561198030810699,
                "SteamStringId": "76561198030810699"
            }
        ]
    }
}

Can you put breakpoints in to check the actual values you're passing in/sending?

As stated below, the lack of a PlayFab ID means that the Steam ID in question isn't linked to a PlayFab account in your title.

0 Likes 0 ·
unbrokencraig avatar image unbrokencraig brendan commented ·

I was using the "Try It" form in the documentation when doing this, but realized that my problem is that I wasn't putting the Steam ID in quotes in the form. As soon as I did that it worked.

0 Likes 0 ·

1 Answer

·
brendan avatar image
brendan answered

If the SteamPlayFabIdPair in the response is missing the PlayFab ID, that means that the Steam ID in question is not associated with a PlayFab ID in our service (for your Publisher ID).

3 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shepkinvictor avatar image shepkinvictor commented ·

Our Titile ID 5A2D.
We are have player with PlayFabID - 3E5E019ED6E83B85 and he associated his Steam account with PlayFab.
If im look at Identities i see this SteamID - 76561198067803152. But when i try call GetPlayFabIDsFromSteamIDs anyway i getting wrong response:

{
 "code": 200,
 "status": "OK",
 "data": {
  "Data": [
   {
    "SteamId": 76561198067803150,
    "SteamStringId": "76561198067803150"
   }
  ]
 },
 "CallBackTimeMS": 489
}

In this case, I don't quite understand in which form and where i can see the example of SteamID for my request.

0 Likes 0 ·
brendan avatar image brendan shepkinvictor commented ·

According to your results, you're passing in Steam ID 76561198067803150. Looking at the player account, the correct Steam ID is 76561198067803152.If I call GetPlayFabIDsFromSteamIDs on the player's Steam ID in your title, I get:

{
    "code": 200,
    "status": "OK",
    "data": {
        "Data": [
            {
                "SteamId": 76561198067803152,
                "SteamStringId": "76561198067803152",
                "PlayFabId": "3E5E019ED6E83B85"
            }
        ]
    }
}
1 Like 1 ·
shepkinvictor avatar image shepkinvictor brendan commented ·

The problem solved, thanks!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.