Well, you can use some social software! As far as I know, foreigners generally use Facebook. If you really want to make friends with them, you can register Facebook, and then go there to chat and make friends with them. Of course, you must have a certain foundation in your foreign language. Otherwise, there will be some difficulties in communicating with them, because not every foreigner is particularly good at Chinese, so it is better to prepare yourself.