每个人都可以发布publish_stream消息 [英] publish_stream message visibility to everyone

查看:141
本文介绍了每个人都可以发布publish_stream消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Facebook PHP API发布到个人资料的新闻Feed:

I use Facebook PHP API to publish to profile's news feed:

    $this->facebook->api('/me/feed', 'POST', array(
      'message' => $msg,
      'link' => 'http://'.$_SERVER['SERVER_NAME'],
      'privacy' => array('value' => 'EVERYONE')
    ));

但此消息仅对朋友可见。我想让它向所有人公开显示!甚至不是朋友。如何做到这一点?

but this message is visible only to friends. I want it to be publicly visible to everyone! Even non-friends. How to do this ?

推荐答案

出于安全考虑,您无法覆盖用户对应用程序发布信息的选择。您最好的办法是将您的应用程式( https://developers.facebook.com/apps/ {APPID} / auth )的默认公开程度设置更改为Everyone,然后让用户在授权您的应用程序时将其更改为其他内容。用户还可以随时在自己的设置中更改设置。

You, for security reasons, cannot override a user's choice on how your app posts messages. The best you can do is to change the default visibility setting of your app (https://developers.facebook.com/apps/{APPID}/auth) to Everyone, and then let the user change it to something else when authorizing your app. The user also has a chance to change the setting in own settings at any time later.

这篇关于每个人都可以发布publish_stream消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆