The log likelihood for the binomial distribution is

l(θ) = x θ − n log(1 + eθ)
where θ is the natural parameter.

The first derivative is

l'(θ) = xn p(θ)
and the second derivative is
l''(θ) = − n p(θ) q(θ)
where
p(θ) = 1 ⁄ (1 + e− θ)
q(θ) = 1 ⁄ (1 + eθ)

Finally, the Newton update is

θn + 1 = θnl'(θ) ⁄ l''(θ)

Let's do it.

This problem is about as well behaved as an optimization gets.