现在我正在尝试弄清楚如何使用 facebooks graph 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);
问题是它只发布消息,没有其他内容,没有附件或任何内容。
有谁知道为什么吗?
Thanks
Graph API 尚不支持附件。
Per 文档
论据消息、图片、链接、
名称、标题、描述、来源
请参阅我的回答你的另一个问题寻求解决方法。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)