OGeek|极客世界-中国程序员成长平台

标题: ios - 如何访问使用我的 iOS 应用程序的 Facebook friend 的高分? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 02:30
标题: ios - 如何访问使用我的 iOS 应用程序的 Facebook friend 的高分?

我的应用中有基本的 Facebook 集成,用于发布屏幕截图。我想知道如何实现以下目标。

  1. 如何保存我的 iOS 应用用户的高分以供 Facebook 识别(或推送到)?
  2. 如何检索这些在我的 iOS 应用中使用的 Facebook 好友的高分?



Best Answer-推荐答案


您可以创建自己的高分系统,也可以使用 Scores API:https://developers.facebook.com/docs/games/scores

请参阅“为玩家和 friend 阅读分数”:

You can read the set of scores for a player and their friends by issuing an HTTP GET request to /APP_ID/scores with the user access_token for that app. The user_friends permission is required in order to view friends' scores. This returns a list of scores for a player and friends who have authorized the app. The list is sorted by descending score value, so it returns friends with the highest scores first. You can use this call to generate a leader board for a player and friends.

关于ios - 如何访问使用我的 iOS 应用程序的 Facebook friend 的高分?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26317316/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4