You have to understand that a Wi-Fi network’s availability is greatly dependent on the underlying internet connection. If it filters out Facebook for example, you will not be able to use Facebook through that Wi-Fi. It could be that the network you connected to had some invalid settings which is why it wasn’t working.