Content preference estimation in online social networks: Message passing versus sparse reconstruction on graphs