Facebook - 仪表板问题,重新加载页面后计数器重置
我有一个奇怪的书签计数错误 - 如果我设置/inc。我的应用程序的书签计数(使用dashboard.setCount或.incrementCount),书签计数显示在用户个人资料中书签部分的应用程序名称后面。不幸的是,如果用户重新加载 Facebook 或只是离开 Facebook,而不单击书签并返回 Facebook,则书签计数就会消失。不过,如果我调用 .getCount,它仍然显示正确的数字(就像计数没有改变一样)。
这真的很糟糕,因为这是我的应用程序通知用户的唯一方式(除了我不使用的电子邮件)。
I have a strange bug with bookmark counts - if I set/inc. the bookmark count of my app (with dashboard.setCount or .incrementCount), the bookmark count shows up in the users profile after the app name in the bookmarks section. Unfortunately, if the user reloads facebook or simply leaves facebook, without clicking on the bookmark, and coming back to facebook, the bookmark count has vanished. Although, if I call .getCount, it still says the right number (like the count didn't change).
This is really bad, because this is the only way (apart from eMail which i dont use) how my app can notify the user.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 Requests 2.0 ( https://developers.facebook.com/docs/channels/#requests ) 您可以从应用程序向用户发送请求,也可以从用户向其他用户发送请求。
这样,您的应用程序设置中就会有一个名为“升级到 Requests 2.0”的迁移设置。
如果启用此设置,书签将始终设置为该用户当前未完成的请求数 [其他用户发送的请求以及应用程序直接发送的请求]。在这种情况下,手动覆盖该号码将不起作用。
With Requests 2.0 ( https://developers.facebook.com/docs/channels/#requests ) you can send requests from the app to the user, as well as from users to other users.
With this, there's a migration setting in your app settings called 'Upgrade to Requests 2.0'.
If this setting is enabled, the bookmark will always be set to the current number of outstanding requests for that user [both requests sent by other users, and those sent by the app directly]. Overriding the number manually won't work in that case.