How do I use :GetFriendsOnline()

I tried player:GetFriendsOnline() but idk how to get them.