嗨我正在使用图API发布到朋友的墙上。 但是,我不希望该帖子在任何新闻Feed (发布用户,发布到的朋友或任何其他人)上都可见。Facebook:张贴到朋友的墙上,但不是他们的饲料(图表API)
我该如何做到这一点。这里是我的墙邮政编码:
function fb_post($to_uid,$acToken) {
$result = false;
global $fb;
$feed_dir = '/'.$to_uid.'/feed/';
$message_str = 'This is a message';
$msg_body = array('access_token' => $acToken,
'message' => $message_str,
'name' => 'Wall Post',
'caption' => "I posted to your wall",
'link' => 'http://www.wallpost.com',
'description' => 'Learn how to post to peoples walls',
'picture' => 'http://image.com/myimage.jpg',
'actions' => array(array('name' => 'Wall Post',
'link' => 'http://www.wallpost.com'))
);
try {
$result = $fb->api($feed_dir, 'post', $msg_body);
}
catch (Exception $e) {
echo "Not sent";
}
}
谢谢。
因此,您想发布一些对任何人都不可见的内容吗?这与没有发布任何内容的效果相同。后者更容易做到。 – Arvin 2011-02-13 10:32:34
用户的墙和用户的新闻源是两回事。通过点击'个人资料'(你的墙)可以看到一个,通过点击'主页'(你的新闻提要)可以看到另一个。我想张贴到墙上,但没有看到它的新闻饲料。 – Zigglzworth 2011-02-13 10:41:41