Friendship prediction and homophily in social media