As always, every situation is unique and it's always good to get legal counsel on your rights and responsibilities. Michael Emery has provided you two excellent resources for your to inquire for assistance in how to move forward.
As I recall, under state law the bank that takes possession after foreclosure is obligated to pay 6 months of past due association dues. But you may be liable for any that are not covered under that law. It would depend on your association documents.
First step is to talk to the management company regarding your foreclosure. If they intend to pursue you for HOA fees, then you should talk to an attorney.
Also call Lutheran Social Services @ 1-800-777-7419. This is a no cost service and they have an office in downtown Saint Paul. They specifically help folks in foreclosure situations.
You could also try Senior Linkage Line (I believe if you're over 50) @ 1-800-333-2433. This is a non profit referral to various state and non profit agencies.