Revealing the Hidden Social Code