现在我正在尝试弄清楚如何使用 facebooks graph api 发布附件。
现在我正在使用
$attachment = array(
'message' => $_POST['tt'],
'text' => 'Download',
'name' => 'name',
'href' => 'http://www.url.com',
'description' => ' description!',
'media' => array(array(
'type' => 'mp3',
'src' => $url,
'href' => 'http://www.url.com/',
'title' => $title,
'artist'=> 'artist',
'album'=> 'the album')));
$statusUpdate = $facebook->api('/me/feed', 'post', $attachment);
问题是它只发布消息,没有别的,没有附件或任何东西。
有谁知道为什么?
谢谢