2010-07-28 82 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沒有問題..

相關問題