2010-07-28 86 views
1

现在我想弄清楚如何使用facebooks图形API发布附件。发布附件Facebook图形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); 

问题是,它的唯一发布的消息,不出意外,没有附件或任何东西。

有没有人有任何想法为什么?

谢谢

回答

4

Graph API尚不支持附件。

the documentation

参数消息,图片,链接, 名称,标题,描述,源

见我的答案在your other question的解决方法。

+3

Graph API是否支持附件? – 2012-05-03 16:25:40

1

你必须使用旧的PHP SDK,直到图形支持附件...图形只支持photoupload。 Im混合图和旧的SDK没有问题..

相关问题