【问题标题】:Publishing a Read activity through facebook app failing for Auth Dialog Preview UserAuth Dialog Preview User 通过 Facebook 应用程序发布读取活动失败
【发布时间】:2019-02-24 14:37:46
【问题描述】:

我们正在使用 Facebook 应用程序的内置“读取”操作,将活动 '... read an article' 发布到用户的时间轴上。该发布适用于该应用的所有开发者。

但是,当我们尝试使用“Auth Dialog Preview User”进行发布时(Facebook 使用它来批准操作的使用),发布失败并出现以下 OAuthException:

{"Code" : 2, "message": "An unexpected error has occurred. Please retry your request later."}

这导致我们提交的待批准操作被拒绝:"We are unable to test this action according to the usage instructions you provided."

关于什么可能导致上述错误的任何想法?

以下是我们发布操作的方式:

FB.api(
        '/me/news.reads',
        'post',
        { article : uri },
        function(response) {
                       if (!response || response.error) {
                          console.log('Error occured while publishing as an article!');
                          console.log(response);
                       } else {
                          console.log('Post as an article was successful! Action ID: ' + response.id);
                       }
            });

【问题讨论】:

  • 我在尝试在我的应用上与测试用户发布活动时也遇到了同样的问题。我的生产应用程序未启用沙盒模式,并且测试用户失败。我收到“您请求的某些别名不存在”或“发生意外错误。请稍后重试您的请求”。
  • 这个问题似乎是题外话,因为它是关于 Facebook 应用程序的批准,而不是编程。

标签: facebook facebook-opengraph


【解决方案1】:

在应用设置中禁用沙盒模式。

【讨论】:

  • 我们已经检查过了,我们的应用程序的沙盒模式一直被禁用。有时,该操作确实会发布,但大多数情况下,它会给出相同的 OAuth 异常
猜你喜欢
  • 1970-01-01
  • 2017-04-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-07-12
  • 1970-01-01
  • 2016-10-07
  • 2012-09-20
相关资源
最近更新 更多