0

我正在使用 facebook 发送方法在我的网站中邀请朋友。

这是代码

function FacebookInviteFriends()
  {
    FB.ui({
      method: 'send',
      name: 'Join Stuffuneed',
      picture: '<?php echo $this->getSkinUrl('images/owl_logo_250_250.jpg') ?>',
      link: '<?php echo $customerLink?>',
      description: "You have been invited to join Stuffuneed. Stuffuneed is the place to find the stuff you always needed but didn't know where to find",
    });
  }

它向我展示了这个对话框

图片

问题是它没有向我显示确切的名称。图片,链接描述。

我也使用了 og 元标签

<meta property="og:title" content="Join Stuffuneed" />
<meta property="og:image" content="http://www.stuffuneed.com/stuffuneed/skin/frontend/default/lockrez/images/owl_logo_25_250.jpg"/>
<meta property="og:site_name" content="Stuffuneed"/>
<meta property="og:url" content="http://www.stuffuneed.com/stuffuneed/"/>
<meta property="og:type" content="website"/>

但它仍然向我显示错误的内容请帮助我......

4

1 回答 1

0

description picture不是发送对话框中的有效参数。参考

您只需要提供链接;fb 将自行获取图像。可能您可以og:image在您提供的链接中设置元标记。

于 2013-11-18T05:56:25.483 回答