Fix authentication bugs specific to Facebook.