 Once the cost of the stock has been determined, then the issuing company can decide how to divide its stock at the determined price to its bidders.Before Facebook's IPO, the book building process was used to determine how much the stock was worth before it was sold to the public.Morgan Stanley was the lead investor for Facebook's IPO.