I think that what it is used for is the server that facebook is on, examples of this may be for tasks such as encrypting things on their server and just maintaining facebook. php is used for the login form and other things that are dynamic. C++ has nothing to do with the design!