My own country, Canada, seems to be doing a good job, and I'm not sure but I think we have even higher immigration rates than Europe or the United States and we're still a fairly liberal, progressive and integrated society. I think our secret is selective immigration, we are much more selective than Europe in regards to who we let into the country and we don't have the illegal immigration issue on the scale that America does.
I think the trick to dealing with immigration is controlling for "which immigrants" which might be easier said than done if you are place like America or Europe with a bunch of people stampeding at your boarders wanting in.