I use
TArray< TSharedRef<FOnlineFriend> > FriendList;
//get a list on all online players and store them in the FriendList
FriendsInterface->GetFriendsList(LocalPlayer->GetControllerId(), EFriendsLists::ToString((EFriendsLists::Default)), FriendList);
GEngine->AddOnScreenDebugMessage(-1, 5.0f, FColor::Emerald, *FString::Printf(TEXT("Number of friends found is: %d"), FriendList.Num()));
to get the friend list in game but it never returns anything, even when I try using the Advanced Sessions Plugin it still returns nothing, what is the problem exactly, is there some unsaid condition that must be met?
the code matches the little documentation there is and complies so I don’t understand what else should be done
the LocalPlayer is the ULocalPlayer of the PlayerController who pressed the button in UMG