简体   繁体   English

Unity中的Facebook游戏:排行榜适用于测试用户,但不适用于真实帐户

[英]Facebook game in Unity: Leaderboards work for Test Users, but not for real accounts

I've made a game for Facebook which has a leaderboard so people can compare their best scores. 我为Facebook开发了一款游戏,该游戏具有排行榜,因此人们可以比较自己的最佳成绩。

It works perfectly in the Unity editor with Test User logins. 它在带有测试用户登录名的Unity编辑器中完美运行。 When I view the leaderboard all of the test users appear with the correct scores, but when I try it with my own account, I'm the only one on the board and my score always displays as 0 (I have a friend added as a tester, and she also only sees her own score of 0 on the board) 当我查看排行榜时,所有测试用户的得分都正确,但是当我用自己的帐户尝试时,我是排行榜上唯一的一个,并且我的分数始终显示为0(我有一个朋友被添加为测试人员,并且她在板上也只能看到自己的0分)

When I try logging in as myself in the Unity editor, the same thing happens, but I get the following error: 当我尝试以我自己的身份在Unity编辑器中登录时,发生了同样的事情,但是出现以下错误:

Score submit result: {"error":{"message":"(#200) Requires extended permission: publish_actions","type":"OAuthException","code":200}} UnityEngine.Debug:Log(Object) 评分提交结果:{“错误”:{“消息”:“(#200)需要扩展权限:publish_actions”,“类型”:“ OAuthException”,“代码”:200}} UnityEngine.Debug:Log(Object)

But I've already included publish_actions in my game, and it's even been submitted and approved by Facebook, but still doesn't work :( 但是我已经在游戏中包含了publish_actions,它甚至已经被Facebook提交并批准了,但仍然不起作用:(

I'm guessing this is just a problem on Facebook's end, but is there anything I can do? 我猜这只是Facebook的问题,但是我能做些什么吗? I'm new to publishing to FB :( 我是发布FB的新手:(

Thanks for reading and I appreciate any help! 感谢您的阅读,感谢您的帮助!

Chel CHEL

It seems your player have declined to give the permission for your app. 您的播放器似乎拒绝为您的应用授予许可。 It can certainly happen. 当然可以。

You can read more about how to check which permissions are granted and below that how to handle them if they are missing on this page . 您可以在此页面上阅读有关如何检查授予的权限的详细信息,以及如何处理丢失的权限的更多信息。 The general idea is that you should catch this error and handle it within your app so if a player decides to not grant your app sufficient permissions for posting on their FB page then your app should skip that part of the code entirely. 通常的想法是,您应该捕获此错误并在您的应用程序中处理它,因此,如果播放器决定不授予您的应用程序足够的权限以将其发布在其FB页面上,则您的应用程序应完全跳过该部分代码。

Hope this helps in finetuning your app. 希望这有助于微调您的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM