Getting Friend list always returns 0 results

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

Be sure to call QueryFriendsList, and wait for the delegate to broadcast that it is finished, before calling GetFriendsList. QueryFriendsList actually pulls the friendslist from whatever backend service you are using (Steam, XBox, PSN, etc), and stores it locally. GetFriendsList then gives your game that stored information.