How could I make a dog pick me as its favourite person?

This is a dog that my friend gave away and it's been the second day that it's been sleeping in my house thus so far. It has also been attached to my friend for a very long time. :)
How could I make a dog pick me as its favourite person?
Post Opinion