Facebook profit slips ahead of stock market debut