Chosen Solution
Hello, I’ve got the same problem with an iphone 8 and an 8 plus. The back was cracked so I change the shell, everything work fine except for the front facing camera. I’ve tried hard reset, reinstall, DFU, repluging the flex cable, replacing the part and nothing seems to be working. I’ve take caution when unplunging the flex cable, nothing seems to have moved under the foam covering. Some got an idea ?
try swapping a know good front cam and back cam into the device, if that works then replace the old back cam and see if it still works and vice versa. had a few give me crap from time to time but maybe that helps.