As to social background, the T'ang dynasty was more open to foreign influence. Confucianism was more a system of the elite, but the common people were not very Confucian.
以社會背景來說，唐代社會風氣比較開放，而儒家在當時的影響力，只及於少數菁英分子，一般老百姓還沒有受到波及。