Meanwhile, Li Heng, who did not follow Emperor Xuanzong, declared himself emperor at
Lingwu, and when the news reached Emperor Xuanzong, Emperor Xuanzong recognized Emperor Suzong as emperor and took the title
Taishang Huang (retired emperor) himself. He sent Fang and fellow chancellors
Wei Jiansu and Cui Huan to Lingwu to official invest Emperor Suzong as emperor and gave them the imperial seal and the edict officially passing the throne. They encountered Emperor Suzong, who was then launching a counterattack, at Shunhua (順化, in modern
Qingyang,
Gansu), and they offered the seal and the edict to Emperor Suzong. Emperor Suzong declined, stating that with empire still in turmoil, it was not an appropriate time for him to officially take the throne, instead putting the seal and the edict aside and paying them daily respects, as they represented Emperor Xuanzong. Emperor Suzong was impressed with Fang's fervor for the restoration of Tang authority and gave him the most responsibility, and he followed Fang's recommendations in not executing the generals Wang Sili (王思禮) and Lü Chongbi (呂崇賁), who were part of the Tang army defeated at
Tong Pass prior to An Lushan's approach on Chang'an. However, it was said that Fang favored big talkers and injected his own likes and dislikes into personnel decisions. This came to Emperor Suzong's attention when Emperor Suzong had decreed that the official Helan Jinming (賀蘭進明) should be made the governor of
Nanhai Commandery (南海, roughly modern
Guangzhou,
Guangdong) and military governor of
Lingnan Circuit (headquartered in Guangzhou), and be given an honorary title as chief imperial censor—but Fang instead announced that Helan would be given the honorary title as
acting chief imperial censor. When Helan brought this to Emperor Suzong's attention, and further intimated that a decree that Emperor Xuanzong had issued before he became aware that Emperor Suzong had assumed imperial title—commissioning Emperor Suzong and several brothers of his with military commands independent of each other—was intended to allow
any of Emperor Xuanzong's sons to be successful and thank him for the commission. Emperor Suzong thus began to distance himself from Fang. Fang, realizing this, requested that he be commissioned to lead an army to recapture Chang'an, hoping to regain imperial favor by battlefield success. Emperor Suzong agreed and further allowed him to select his own staff members. Fang selected such friends as Wang Sili, Deng Jingshan (鄧景山), Li Ji (李揖), and
Liu Zhi to serve on his staff, entrusting the strategies to Li Ji and Liu—despite the fact that neither was learned in military matters, going as far as stating, "Even though the rebels have many strong men, none can rival my Liu Zhi." He divided his army into three groups and approached Chang'an, and once he was engaging Yan forces there, he used an ancient tactic from the
Spring and Autumn period—putting cattle-drawn wagons in the center and cavalry and infantry on the side. Yan forces responded by beating its drums, terrorizing the cattle, and then setting fire on the wagons. This caused a general panic in both the cattle and the Tang soldiers, causing more than 40,000 casualties. Fang led a counterattack, which was also defeated. However, at the urging of Emperor Suzong's trusted advisor
Li Mi, Fang was not punished. Despite the defeat, though, Fang was still spending most of his day discussing
Buddhist and
Taoist philosophies with Liu and Li JI, often claiming illness so that he would not need to deal with the affairs of state. He also favored the musician Dong Tinglan (董庭蘭), and Dong thereafter often took bribes to influence Fang on the bribers' behalf. He also tried to reduce the punishment due to one of his friends, Li Heji (李何忌), for lack of filial piety. Meanwhile, he also disrespected fellow chancellor
Cui Yuan, drawing Cui Yuan's resentment as well. When an indictment was filed against Dong, he tried to defend Dong, drawing displeasure from Emperor Suzong, who ordered him out of the palace. He thus returned to his own mansion and did not dare to rule on important matters. In summer 757, Emperor Suzong removed him from his chancellor position and replaced him with
Zhang Gao, making Fang an advisor to the crown prince instead. In winter 757, after Tang forces recaptured Chang'an, he returned to Chang'an with Emperor Suzong, and was given the honorific title
Jinzi Guanglu Daifu (金紫光祿大夫) and created the Duke of Qinghe. Meanwhile, with him not having any real authorities, his associates were creating public sentiment that he should be restored to power due to his abilities. Emperor Suzong, displeased, issued a sternly-worded edict rebuking Fang and sending him out of Chang'an to serve as the prefect of Bin Prefecture (邠州, roughly modern
Xianyang,
Shaanxi). It was said that, at the time, after all of the military action, Bin Prefecture was in a state of confusion and disrepair. Once Fang arrived there, he did what he could to comfort the people, repair the buildings, and put officials in their proper places. In 759, Emperor Suzong issued an edict praising him and recalling him to serve on the staff of the new crown prince
Li Yu. In 760, he was made the minister of rites (禮部尚書,
Libu Shangshu), but was soon sent out of the capital to serve as the prefect of Jin Prefecture (晉州, in modern
Linfen,
Shanxi) and then the prefect of
Han Prefecture (漢州, in modern
Deyang,
Sichuan). While he was at Han Prefecture, he paid a large
bride price to the official Li Rui (李銳) to get Li Rui to give his nephew Lady Lu to be the wife of Fang's oldest son Fang Cheng (房乘), who was blind in both eyes from birth. This use of bride price drew severe criticism against Fang Guan. == During Emperor Daizong's reign ==