此应用程序似乎正常工作,每件事情都很好但不适用于墙壁并邀请朋友按钮。
这是我的应用网址:http://apps.facebook.com/mypersonnaldeathage
和墙函数的代码:
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: ''
}
答案 0 :(得分:0)
你发现的行动名称没有填写
操作链接必须包含字符串'href'和'text'属性
您提供给我的代码
function publishToWall() {FB.ui({ method: 'feed', name: 'Your Personal Age Of Death', link: 'http://apps.facebook.com/persodeathage/', picture: 'http://www.septimageneracion.net/pdage/gravestone.jpg', caption: 'How and When Will You Die', description: '"You have 37 years to live...You will die from excitement when you get an email telling you that you won the Nigerian Lottery. \n"', actions: [ { name: '', link: 'http://apps.facebook.com/persodeathage/'} ], message: '' },function(response) { if (response && response.post_id) { //alert('Post was published.'); } else { //alert('Post was not published.'); } } );}
注意actions: [ { name: '', link: 'http://apps.facebook.com/persodeathage/'} ]
部分。