How to save score for unty game in flash for facebook ?

I am trying to make a facebook game using unity in flash .I am using facebook canvas for it.The game has 10 levels .But I am wondering how to save score for every level individually in facebook .It would be very kind if anyone help me out

If you’re talking about local saving in the flash storage on the users computer, you can use PlayerPrefs.


PlayerPrefs.SetInt("Level1Score", score); // score is of type int

// to get with a default value if it doesn't exist:

score = PlayerPrefs.GetInt("Level1Score", 0); // zero being the default if there isn't a value for Level1Score in the local storage.

This can be taken further to construct the key(example “Level1Score”) from the scene name if you wish.