Facebook prepares for its IPO. Amazon reports weaker-than-expected earnings.