There’s not a good way to answer this as there isn’t a standard way to count lines of code, and what do you consider “Facebook”. I imagine you probably mean the core website (front end plus necessary back end logic). Keep in mind that Facebook had to make customizations to their database stack, so that should probably count towards their lines of code. They also wrote their own front end library, React, which is a bit harder to count as React is used by several other companies too and a lot of the code might not be used by Facebook themselves.
Facebook also likely has code specifically written for various teams to use internally (analytics, administrators to handle reported users/posts, etc), and code to make it easier to share necessary information with law enforcement (when you have billions of users, some likely will have legal issues), and code to comply with local regulations. Other code is likely not core to Facebook, but necessary to provide third party APIs and use Facebook logins.