Fang obtained his jinshi degree or advanced scholar degree following the imperial examination system in 1706 under the reign of the Kangxi Emperor and was given a posting at the Hall of Military Glory (武英殿) as its Director-General of Compilation (修書總裁).
In the prison there were four old cells.