In 725, during the reign of Emperor Ruizong's son Emperor Xuanzong, Emperor Xuanzong was set to offer sacrifices to heaven and earth at Mount Tai.
In 742, Fang was made Zhuke Yuanwailang (主客員外郎), a low-level official at the ministry of rites (禮部, Libu), and in 744 was promoted to the higher post of Zhuke Langzhong (主客郎中).