1

这是我的代码。我需要设置隐私让每个人都可以看到图片,但它似乎不起作用,只有朋友可以看到图片而不是每个人。

<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> 

`
4

2 回答 2

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> 
于 2012-09-18T11:33:45.237 回答
0

试试这个,然后让我知道——

privacy: {value: "EVERYONE"},

代替 -

privacy: '{value: "EVERYONE"}',
于 2012-09-18T11:44:48.287 回答