require_once("externals/facebook-sdk/src/facebook.php");
$config = array();
$config['appId'] = 'XXXXXXXXXXXXXXXXXXXXXXXX';
$config['secret'] = 'XXXXXXXXXXXXXXXXXXXXXXXXX'; $config['fileUpload'] =true;
$facebook = new Facebook($config)
; 我可以发布视频
$facebook->api('/me/feed', 'post', array(
'message' => $message,
'link' => 'http://www.test.org/videos/'.$video['video_id'].'/'.$_POST['title'],
'type'=>'video',
'source'=>$video['embed'],
'picture'=> $pic,
'name'=> $_POST['title'],
'caption'=>'this is a test' ,
'description'=> $_POST['desc'])
);
我怎样才能对音频做同样的事情?我应该将视频更改为音频并提供该音频的网址吗?