Facebook分享Wordpress Post在自己的墙上

时间:2015-03-25 19:16:00

标签: wordpress facebook

我想在wordpress上分享个人时间线上的特殊文字,如果他点击"分享"。

f.e我有:"天哪,我怀孕了#34; 确切的这个文本我想在我或他的Facebook时间轴上从编码网站发布。它应该看到我或他在Facebook上输入这个(没有链接到网站,或任何东西,空白文本)。它类似于复制&粘贴,但分享会更容易。

我找到了这个,但这是静态的,我使用wordpress并为帖子生成多个随机文本。

<script type="text/javascript">
$(document).ready(function(){
$('#share_button').click(function(e){
  e.preventDefault();
  FB.ui(
    {
      method: 'feed',
      name: 'This is the content of the "name" field.',
      link: 'URL which you would like to share ',
      picture: ‘URL of the image which is going to appear as thumbnail     image in share dialogbox’,
      caption: 'Caption like which appear as title of the dialog box',
      description: 'Small description of the post',
      message: ''
    }
  );
}
                        );
}
                 );
</script>

插件也很棒 谢谢

1 个答案:

答案 0 :(得分:1)

根据platform policy

,不允许您做什么
  

不要预填字幕,评论,消息或用户消息   具有人未创建的内容的帖子的参数,即使是   此人可以在分享之前编辑或删除内容

即使允许这样做,唯一的方法是授权具有publish_actions权限的用户并使用API​​发布到用户墙。你不会因此获得publish_actions批准,所以根本不可能。

只是为了清楚说明:消息必须是100%用户生成的。

相关问题