【问题标题】:Facebook app: change post-on-wall privacyFacebook 应用程序:更改贴在墙上的隐私
【发布时间】:2012-12-08 09:10:03
【问题描述】:

我正在使用此功能在自己的墙上发帖,我想将帖子的隐私设置为 FRIENDS。但它不起作用。始终保持默认应用隐私 (PUBLIC)。我该如何更改?

谢谢

function postToWall(message, header) {
    FB.ui(
            {
                method: 'feed',
                caption: header,
                link: 'http://www.iflikeu.com',
                picture: 'http://myapp.herokuapp.com/common/images/icon.png',
                description: message,
                privacy: {'value': 'ALL_FRIENDS'}
            },
            function(response) {
                /*if (response && response.post_id) {
                    alert('Post was published.');
                } else {
                    alert('Post was not published.');
                }*/
            }
    );
}

【问题讨论】:

  • 这个帖子是发到你自己的墙上还是发到你朋友的墙上。因为根据privacy settingsNote: The privacy parameter only applies for posts to the user's own timeline and is ultimately governed by the privacy ceiling a user has configured for an app. It does not apply to posts made by an app on behalf of a user to another user's timelines or to Pages, events, or groups. In those cases, such posts are viewable by anyone who can see the timeline or content in the group or event.
  • 它在我自己的墙上。有任何想法吗?谢谢

标签: facebook facebook-graph-api facebook-apps privacy


【解决方案1】:

您的示例是调用 FB.ui() 触发提要对话框 - 用户逐个帖子选择此类帖子的隐私

如果您直接通过 API 发帖,您将调用 FB.api(),您可以在其中直接设置每个帖子的隐私;使用对话框,用户始终可以选择帖子可见性,并且选择器中的值默认为您的应用的默认隐私设置

【讨论】:

    【解决方案2】:

    您可以尝试编辑应用程序设置:配置权限。 并将 Default Activity Privacy: 设置为 public。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多