Integration with Facebook

Hi all,

I have a question about integrating Unity Web apps with Facebook.

How can i save the players scores ? I mean, in case of desktop applications, i use the following code save to save user score(s)

PlayerPrefs.SetInt("Player Score", score);

which saves the score in kinda registry file (in case of Windows OS).

But how can i do so with web apps in Facebook ? (BTW i wanna save every level’s score for the player)

Thanks,

Samer Samy

PlayerPrefs works the same way in the web plugin then for desktop apps, so you could use the same approach. This works as long as the user uses the same computer to play the game – if you want to allow users to log into their Facebook account from different machines and retain the preferences, you would have to implement some server side solution tied to the Facebook account, which is more involved.