Characteristics and evolution of content popularity and user relations in social networks