question

contact-18 avatar image
contact-18 asked

Unreal - GetFriendsList

Hi

Has anyone got GetFriendsList() working with 5.1? I think the call is broken in this plugin version.

5424-getfriends.png

Friends
getfriends.png (301.0 KiB)
1 comment
10 |1200

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

Rick Chen avatar image Rick Chen ♦ commented ·

I will do some test and let you know the update. Your patience is appreciated.

0 Likes 0 ·

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

We have reported this issue to the team. And as a workaround, you can modify the code from line 6100 to line 6109 in Marketplace\PlayFabSDK\Source\PlayFab\Private\PlayFabClientAPI.cpp to the following code and rebuild the plugin:

 if (GetEnumValueToString<EExternalFriendSources>(TEXT("EExternalFriendSources"), request.ExternalPlatformFriends, temp_ExternalPlatformFriends))
     {
         if(temp_ExternalPlatformFriends!="None")
         OutRestJsonObj->SetStringField(TEXT("ExternalPlatformFriends"), temp_ExternalPlatformFriends);
     }
            
     if(request.IncludeFacebookFriends)
     OutRestJsonObj->SetBoolField(TEXT("IncludeFacebookFriends"), request.IncludeFacebookFriends);
     if(request.IncludeSteamFriends)
     OutRestJsonObj->SetBoolField(TEXT("IncludeSteamFriends"), request.IncludeSteamFriends);
10 |1200

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

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.