Facebook vows aggressive investment as earnings surge