我无法使用iframe facebook app正确发布Stream Publish

时间:2011-11-17 16:09:30

标签: facebook iframe

我有以下代码:

`$attachment = array( 
            'message' => "test",
            'text' => 'Download',
            'name' => 'name', 
            'href' => 'http://www.mydomain.com', 
            'description' => 'description!', 
            'media' => array(array(
                'type' => 'mp3', 
                'src' => "http://www.mydomain.com/mp3.mp3", 
                'href' => 'http://www.mydomain.com/', 
                'title' => "title",
                'artist'=> 'artist',
                'album'=>  'the album')));
            $facebook->api('/me/feed', 'post', $attachment);`

但是当我在我的个人资料中发布POST时,它只显示消息“test”。 mp3文件没有出现。有什么问题?

1 个答案:

答案 0 :(得分:0)

$attachment = array( 
            'message' => "test",
            'text' => 'Download',
            'name' => 'name', 
            'href' => 'http://www.mydomain.com', 
            'description' => 'description!', 
            'media' => array(
                'type' => 'mp3', 
                'src' => "http://www.mydomain.com/mp3.mp3", 
                'href' => 'http://www.mydomain.com/', 
                'title' => "title",
                'artist'=> 'artist',
                'album'=>  'the album'));
            $facebook->api('/me/feed', 'post', $attachment);