facebook jssdk fb.ui picture not showing in dialog

孤街浪徒 提交于 2020-01-06 22:59:10

问题


I've got this facebook(and yes-the php variable get parsed into a url correctly)

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:


you have to configure the link: parameter for some reason. Not sure how the two are related, and trying to figure out a way to get the picture to show without a link parameter.



来源:https://stackoverflow.com/questions/4823928/facebook-jssdk-fb-ui-picture-not-showing-in-dialog

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!