Can fibromyalgia syndrome and chronic fatigue last only a short period?

No. It is a chronic syndromes meaning it lasts more than at least 6 months.
Usually not! I suspect you have had a transient illness, most likely viral. I'm glad your problems have resolved!