Presumably the 1.5gb facebook binary is deployed as a daemon listening on port 80. Seems unlikely that they are cgi-ing a new process for each request.
It is compiled PHP. Do they embed an http server? Do they talk fcgi with a well-known webserver, like - php would?