Judge’s Facebook friendship upends Wisconsin custody case