开发者

Facebook - Dashboard issues, counter resets after reloading page

开发者 https://www.devze.com 2023-03-18 09:27 出处:网络
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 t开发者_Go百科he users profile after

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 t开发者_Go百科he 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号