Their friends paid a visit for / to John's family. You could also say, "They arrived for a visit to John's family."
They welcomed their friends to pay John a visit. It's kindova stretch -John is bedridden at home, and his family opens the door to greet their friends who have arrived to pa