gpt4 book ai didi

android - 为什么 Facebook 游戏请求没有显示在收件人个人资料中?

转载 作者:太空宇宙 更新时间:2023-11-03 13:13:34 27 4
gpt4 key购买 nike

我正在我的 Android 游戏中实现 facebook 功能。在 Facebook 上注册的应用程序。一切正常。
但是当我发送请求时打开 GameRequest 对话框,选择 friend 并发送。根据要求,我获得成功并请求 ID。但在收件人方面没有显示任何请求或通知(在 facebook 桌面上)。

我做错了什么?

我实现的代码如下。如文档所述,已在启动时创建了 requestDialog。

    GameRequestContent content = new GameRequestContent.Builder().
setTitle("Title").
setMessage("Content").
build();
requestDialog.show(content);

最佳答案

我想问自己的问题。

正如我在上面所解释的那样,一切都得到了正确的实现。

Facebook Game Request doc说:

“在 Facebook 桌面站点上,请求显示为屏幕左下角的蜂鸣器弹出窗口以及 notifications jewel在移动平台上 请求将出现在 Facebook 应用程序通知列表 中。”/p>

但它没有提到如果您在 Facebook 中仅配置了 android 应用程序,它将仅在 Android Facebook 应用程序上显示通知,而不是在 Facebook destkop 站点中。

但是当我在 Facebbok 应用程序上查看通知栏时,发现游戏请求确实出现在 Facebook 应用程序上。

在开发时考虑这个未描述的 future 。

我在 Facebook 上将此问题报告为错误 (report link) 并获得了积极的反馈:

You are right, that could definitely be improved. We do specify that:

Invites that are sent by the player will appear on whatever combination of platforms supported by your game.

但仅限于“Invitable Friends API”部分。不是很容易 找到。

我已将此错误分配给文档团队以进一步说明 清楚。

多梅尼科,感谢您的报告

更新:

几天后他们解决了问题并添加了以下句子:

Your implementation of requests should therefore be platform-agnostic and should provide a consistent user experience, regardless of platform. However, invites that are sent by the player will appear on whatever combination of platforms supported by your game.

相关其他问题

此外,我想分享更多信息。你也可能会遇到这个问题。
要让 recipinet 打开 android 应用程序单击游戏请求通知 - 您必须在 facebook 应用程序的 Android 应用程序设置上设置"is"选项,如下图所示。 (这是在 Facebook 应用程序的 Android 设置下)。
否则你会看到 The requested page cannot be displayed right now ...

enter image description here

关于android - 为什么 Facebook 游戏请求没有显示在收件人个人资料中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40448506/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com