So, here's what i did to fix it. Initially I restored my laptop, with a complete restore. The webcam worked until the updates were downloaded. The webcam stopped working for facebook in chrome and edge. I tried downloading internet explorer, and it still didn't work. Finally, I downloaded firefox, and the webcam and microphone now work in that browser. So, I guess firefox is the resolution for this issue.