User identification method based on friendships and demographic attributes in social networks