Learning and Transferring Social and Item Visibilities for Personalized Recommendation