Facebook is committing to increase diversity in patenting, and extend support for underrepresented inventors in tech.