Identifying interacting pairs of sites in infinite range Ising models