Optimizing Recommender Systems For Social Networks