0

我要花 4 个小时在 facebook 上的页面上发送帖子

$attachment = array(
        'message' => "@[".$id.":1:".$name.'] dsf sadfewqr',
                    'name' => "test test etst etst test test",
                    'link' => "http://www.tiscali.it",
                    'description' => "test",
        'picture'=> "http://www.example.com/img.jpg",
        'message_tags' => array(
            'data' => array(
                'id' => $id,
                'name' => $partecipant['name_screen'],
                'offset' => 0,
                "type" => "user",
                'length' => strlen($name)
            )
        ),
        'access_token' => '--fanpageaccesstoken--'
    );

    $facebook->api('/'.$idfanpage.'/feed', 'POST', $attachment);

每次我只收到没有标签的消息。我做错了什么?

谢谢大家!

4

1 回答 1

3

你从哪里得到 message_tags 参数?

根据https://developers.facebook.com/docs/reference/api/user/#posts,您应该使用tags参数来提供逗号分隔的用户 ID 列表。

并注意注释说,如果不指定地点,您将无法指定此字段。

于 2012-06-02T17:31:22.187 回答