我在我的应用程序的墙上自动共享提要,它工作得非常好,但是当我附加图像并与之链接时,我知道图像不会出现在本地主机上,但至少有一条成功消息,但它给了我一个我在回复中提到的错误,有什么想法吗?
$(document).ready(function(){
var image_name = '<?=$trx_detail->image_name?>'
var wallPost = {
access_token: '<?php echo $this->facebook->getAccessToken()?>',
message: 'test message',
link: <? echo "'".CANVAS_URL."'";?>,
picture: '<?=base_url()?>path/'+image_name,
description: 'test description!'
};
FB.api('/me/feed', 'post', wallPost, function(response) {
if (!response || response.error) {
alert('Error occurred');
} else {
alert('Success!');
}
});
});