Facebook leaderboard [closed]

旧时模样 提交于 2020-01-07 04:18:08

问题


I was wondering whether anyone had any useful guides for implementing Facebook scores in an Android game. I am currently building a profile in-game but there are lots of features in the Facebook SDK and Graph API that I don't know how to use.

Is anyone familiar with posting scores and retrieving leaderboards of your Facebook friends?


回答1:


You could make your own leaderboard - store the scores in your database, calculate rank, etc and use standard open graph actions to publish to users walls.

Alternatively, you can use Facebooks scores API which handles a lot of this for you, however it does have its limitations. You can also use the Achievements API which allows you to post stream stories to the users timeline like 'Joe just unlocked the Star Badge'.

Finally, you could use a third party tool such as Leaderboarded, although I'm not sure how relevant this is to your game.

As for useful guide - I've found it better/more relevant to provide friend leaderboards rather than global leaderboards, as these are often more interesting to the user.



来源:https://stackoverflow.com/questions/13690300/facebook-leaderboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!