Facebook的:投递到朋友的墙上,但不要将其饲料(图形API) [英] Facebook: Post to friend's wall but NOT to their feed (Graph API)
问题描述
您好我现在用的图形API张贴到一个朋友的墙上。
不过,我不希望后,可在任何新闻联播可见
(发帖的用户,朋友被张贴到,或其他人)。
Hi I am using the graph API to post to the the wall of a friend. However I do not want the post to be visible on any News Feeds (the posting user, the friend being posted to, or anyone else).
我怎样才能做到这一点。这里是我的墙后code:
How can I achieve this. Here is my wall post code:
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";
}
}
感谢。
推荐答案
简短的回答是否定的。
Facebook的近期
列表等等都岗位的动态融合 - 后不能标记选择退出此,Facebook的决定其相关性和覆盖面。
Facebook's recent
lists and so on are a dynamic amalgamation of posts - a post can't be marked to opt-out of this, Facebook decides its relevancy and coverage.
一个用户可能已经配置了他们的个人资料,以使某些类型/从某些应用程序的帖子在一个特定的方式处理,但没有什么可以亲手做有关 - 我仍然不认为它包含选项从资讯???
的帖子,主要是刚刚从他们的墙上不让他们摆在首位。
A user may have their profile configured to so that postings of certain types/from certain applications are handled in a specific way, but there's nothing you can personally do about that - and I still don't think it encompasses options to hide
posts from feeds, mainly just disallow them from their wall in the first place.
这篇关于Facebook的:投递到朋友的墙上,但不要将其饲料(图形API)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!