Learning Opinions in Social Networks