这是我的代码。我需要设置隐私,这样每个人都可以看到图片,但它似乎不起作用,只有朋友才能看到图片不是每个人。
<script>
var token="<?php echo $_SESSION['access_token'];?>";
$.post("https://graph.facebook.com/<?php echo $sqlr['regidfriendsid']; ?>/feed", {
access_token: token,
picture: "https://mysite/_n.jpg" ,
link: "https://www.mysite.com/login.php?ref=owall",
caption: "Check ur Intelligence ",
privacy: '{value: "EVERYONE"}',
message: " Click to know your intelligence level? "
});
</script>
`
答案 0 :(得分:0)
您可以设置隐私设置:
NETWORKS_FRIENDS
看看这个网址:
http://developers.facebook.com/docs/reference/rest/photos.createAlbum/
<script>
var token="<?php echo $_SESSION['access_token'];?>";
$.post("https://graph.facebook.com/<?php echo $sqlr['regidfriendsid']; ?>/feed", {
access_token: token,
picture: "https://mysite/_n.jpg" ,
link: "https://www.mysite.com/login.php?ref=owall",
caption: "Check ur Intelligence ",
privacy: '{value: "EVERYONE"}',
message: " Click to know your intelligence level? "
});
</script>
答案 1 :(得分:0)
试试这个,然后让我知道 -
privacy: {value: "EVERYONE"},
而不是 -
privacy: '{value: "EVERYONE"}',