如果我错过 Facebook 的回调会怎样?
如果由于我的应用程序已关闭或发生错误或其他原因而错过了 Facebook 的回调,会发生什么情况?
Facebook 稍后会重试吗?
What happens if I miss facebook's callback, because my app is down, or had an error or something?
Will facebook retry later?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的意思是“发布授权”或“发布删除”事件?无论哪种情况:不,Facebook 都不会重试。即使您的应用程序始终运行,这两个调用都以低于 100% 的可靠性而闻名。 (甚至过去的错误导致当前用户调用“删除”回调。这种情况已经有一段时间没有发生了,但这并不是说它不会再发生。)
您可以检查用户是否有使用
Users.isAppUser
API 调用授权您的应用< /a> 如果你确实需要确定的话。根据上面的内容,甚至值得在“删除”回调中进行检查,以防 Facebook 错误地调用它。You mean for an "post authorize" or "post remove" event? In either case: no, Facebook won't retry. Both of those calls are renowned for being less than 100% reliable, even if your app is up all the time. (There have even been past bugs that caused the "remove" callback to be called for current users. This hasn't happened for quite a while, but that's not to say it won't again.)
You can check if a user has authorised your app with the
Users.isAppUser
API call if you really need to be sure. Following on from the above, it can even be worth making that check in your "remove" callback just in case Facebook calls it by mistake.