0

我发布到用户墙上,我有 id 和其他所有内容,但我似乎无法“标记”朋友,这是代码(我遵循了他们的文档https://developers.facebook.com/docs/reference/api/用户/#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 来标记,它不起作用。

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

4

0 回答 0