-1
我想用Facebook Graph API在用戶的牆上發佈mp3或mpg文件。我試圖運行我的代碼的MP3文件,但是當我運行此代碼時,我只能發佈消息。如何在PHP的Graph API中將mp3文件發佈到用戶的牆上?
$attachment = array('message' => 'some message',
'media' => array('type' => 'music','src' => 'http://www.looptvandfilm.com/blog/Radiohead%20-%20In%20Rainbows/01%20-%20Radiohead%20-%2015%20Step.MP3',
'title' => '15 Step',
'artist' => 'Radiohead',
'album' => 'In Rainbows')
);
$facebook->api('/me/feed', 'POST', $attachment);
我應該照顧一些東西嗎?
它不起作用,只有信息出現在牆上。 – Ali