facebook jssdk fb.ui图片没有显示在对话框中

时间:2011-01-28 01:28:44

标签: javascript facebook sdk

我有这个facebook(是的 - php变量被正确解析为url)

FB.ui(
  {
    method: 'stream.publish',
    attachment: {
      name: 'My Social Status',
      caption: 'This Is My Social Status',
      picture: 'http://server.com/<?php echo $finalimagepath; ?>',
      description: 'My social status lets you create a profile pic that tells your real mood. ',
      href: 'http://apps.facebook.com/app'
    },
    action_links: [
      { text: 'My Social Status', href: 'http://apps.facebook.com/app' }
    ]
  },
  function(response) {
    if (response && response.post_id) {
      alert('Post was published.');
    } else {
      alert('Post was not published.');
    }
  }
);

</script>

1 个答案:

答案 0 :(得分:0)

出于某种原因,您必须配置 link:参数。不知道这两者是如何相关的,并试图想出一种方法来让图片显示没有链接参数。