I have set up a facebook app for the first time. but i am getting a little error in the share field. My share button is not working . when i click in the button it says
An error occurred. Please try again later.
API Error Code: 1
API Error Description: An unknown error occurred
Error Message: kError 1349115: Action links missing attributes: Action links must have string 'href' and 'text' attributes.
You can see the demo here by yourself here
The code to make the share is here
FB.ui(
{
method: 'feed',
name: '<?= $appname;?>',
link: '<?= $canvasURL;?>',
picture: '<?php echo $callBackURL.$appimagename;?>',
caption: '<?=$wallpub;?>',
description: '<?= json_encode(strip_tags($line, ''));?>',
actions: [{ name: '<?= $walllink;?>', link: '<?= $canvasURL;?>'}],
message: ''
},
function(response) {
if (response && response.
_id) {
//alert('Post was published.');
} else {
//alert('Post was not published.');
}
}
);
}
I hope you guys can help me out.