通过Facebook应用程序发布读取活动,无法使用Auth Dialog预览用户

问题描述 投票:1回答:1

我们在facebook应用程序中使用内置的“Read”操作,将活动'... 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-opengraph opengraph
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.