How does facebook flash games autosave?

Hy, I am currently making a game for facebook,it is almost done except the saving part, i have tried shared objects ,but it doe’s not work as i want it to.I was wondering if any of you could tell me , how most of the flash games on facebook autosave?Are they using an outside language, or shared objects, database,etc.?Please go a little bit into details if you know!Thanks a lot!