开发者

Scores and Achievemnts, understanding the process

I 开发者_C百科am a bit confused when it comes to Scores and Achievements. I am currently registering Achievements 1 - 1000 assigned to points 1 - 1000, where each point is an achievement.

I know each achievement. has a point value associated to it, if i post achievement to a user does the point value increase to, or do i post the point value and the achievement auto associates, or do i post both?


Here is the documentation about achievements.

For each achievement you create a webpage that describes the achievement using meta tags, including its title and the point value of that achievement. For example, you might create a "Fed brown cow" achievement that's worth 25 points at http://www.mygame.com/achievements/fed_three_cows.

Then, when the user achieves something, you just pass Facebook the URL to the achievement. See the "Create" section in the doc. You never directly award a user points; you award a user an achievement and they'll automatically get the points associated with that achievement. For example, if you were to award a user the achievement at the URL http://www.mygame.com/achievements/fed_three_cows that we created earlier, this would automatically award that user 25 points.

As an aside, Facebook enforces that the entire app never awards more than 1000 points total, so you probably shouldn't have a 1000 point achievement unless that's the only achievement you want to ever award.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜