在帖子中标记用户,facebook PHP SDK,问题

时间:2013-05-27 18:40:56

标签: php facebook facebook-graph-api facebook-php-sdk

即时发布到用户墙,我有id和其他所有内容,但我似乎无法“标记”朋友,这里是代码(我按照他们的文档https://developers.facebook.com/docs/reference/api/user/#posts):

$tags = $tag1 . $tag2 . ',someID';
// tag 1 and tag 2 are also IDs of users, seperated by a comma only, no whitespace
$place = '110343502319180';


        $attachment = array(
            'access_token' => $access_token,
            'message' => $message,
            'link' => $link,
            'name' => $title,
            'description' => $desc,
            'picture'=>$pic,
            'place'=>$place,
            'tags'=>$tags,
            'actions' => json_encode(array('name' => $action_name,'link' => $action_link))
        );

        $post_url = '/' . $row['uid'].'/feed';
        $postResult = $facebook->api($post_url, 'post', $attachment );

我指定一个地方和3个用户ID来标记它不起作用。

有关信息,故事确实已发布,但标签和位置未在其中定义..

0 个答案:

没有答案