facebook jssdk fb.ui图片没有显示在对话框中 [英] facebook jssdk fb.ui picture not showing in dialog

查看:282
本文介绍了facebook jssdk fb.ui图片没有显示在对话框中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  FB.ui (
{
方法:'stream.publish',
附件:{
名称:'我的社会状态',
标题:'这是我的社会地位' ,
图片:'http://server.com/<?php echo $ finalimagepath;?>',
描述:'我的社交状态让你创建一个告诉你真实心情的个人资料图片',
href:'http://apps.facebook.com/app'
},
action_links:[
{text:'我的社交状态',href: 'http://apps.facebook.com/app'}
]
},
函数(响应){
if(response&& response.post_id){
alert('Post was published。');
} else {
alert('Post was not published。');
}
}
);

< / script>


解决方案

您必须配置链接: / strong>参数由于某些原因。不知道两者是如何相关的,并试图找出一种方式来获得图片,没有链接参数。


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>

解决方案

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.

这篇关于facebook jssdk fb.ui图片没有显示在对话框中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆