发布时,Facebook Sharer无法正常工作

时间:2013-12-19 09:32:40

标签: facebook facebook-sharer

我正在尝试这个解决方案:Is it possible to customize / change the description content of a fb-share button? 但重定向到:Facebook.com/dialogue 这是我的代码,我只更改了URL和IMG-URL。

<a href="https://www.facebook.com/dialogue/feed?app_id=230713690422049&link=https%3A%2F%2Fallastudier.se/vadskadublida&description=YOUR DESCRIPTION&picture=http://orangelemon.se/allastudier/assets/img/johanna_fb.jpg&name=SITE TITLE&caption=BEST THINGS EVER">hejsan</>

我不想使用OG元标记,因为我喜欢在同一页面中使用不同的共享按钮,并且页面是框架的,我无法更改在我的iframe中读取的原始页面中的标题。

我之前使用过这个;

<script>
  window.fbAsyncInit = function() {
    FB.init({
      appId  : '255434817942727',
      status : true, // check login status
      cookie : true, // enable cookies to allow the server to access the session
      xfbml  : true  // parse XFBML

    });
  };

  (function() {
    var e = document.createElement('script');
    e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
    e.async = true;
    document.getElementById('fb-root').appendChild(e);
  }());
</script>

<img class="likebutton" draggable="false" style="cursor:pointer; margin-left: -20px; margin-bottom: 40px;" id="share_button" src="http://orangelemon.se/allastudier/assets/img/Barn_A_Lekledare.png">

<script>

$(document).ready(function(){
$('#share_button').live('click', function(e){
e.preventDefault();
FB.ui(
{
method: 'feed',
name: 'Johanna tycker att jag ska bli' + ,
link: 'http://allastudier.se/vadskadublida',
picture: 'http://orangelemon.se/allastudier/assets/img/johanna_fb.jpg',
caption: '',
description: 'Vad ska du bli? G&ouml;r v&aring;rt test och f&aring; svar fr&aring;n &quot;The Mauler&quot;, Lisa Tellbe, Alex fr&aring;n Rackartygarna eller Johanna Simfors. Du kan &auml;ven t&auml;vla om en moppe v&auml;rde ca 11 000 kr. Klicka h&auml;r!',
message: ''
});
});
});
</script>

<script>
    function fbShare(url, title, descr, image, winWidth, winHeight) {
        var winTop = (screen.height/2) - (winHeight/2);
        var winLeft = (screen.width/2) - (winWidth/2);
        window.open('http://www.facebook.com/sharer.php??m2w&s=100&p[title]=' + title + '&p[summary]=' + descr + '&p[url]=' + url + '&p[images][0]=' + image, 'sharer', 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width=' + winWidth + ',height=' + winHeight);
    }

</script>

<div>
<a class="likebutton" href="javascript:fbShare('http://allastudier.se/vadskadublida', 'Lisa tycker att jag ska bli B&Ouml;RSHAJ', 'Vad ska du bli? G&ouml;r v&aring;rt test och f&aring; svar fr&aring;n &quot;The Mauler&quot;, Lisa Tellbe, Alex fr&aring;n Rackartygarna eller Johanna Simfors. Du kan &auml;ven t&auml;vla om en moppe v&auml;rde ca 11 000 kr. Klicka h&auml;r!', 'http://orangelemon.se/allastudier/assets/img/lisa_fb.jpg', 418, 340)"><img style="margin-left: -20px; margin-bottom: 40px;" class="bubbla" src="http://orangelemon.se/allastudier/assets/img/Ekonomi_C_Borshaj.png"></a>

但是从昨天起它就停止了工作。我在sharer对话框中获取了信息,但它没有正确地发布到Facebook。 在此处查看“共享者”对话框的图像:http://carinelvhammar.com/sharedialog.png Facebook发布结果:http://carinelvhammar.com/postonfacebook.png

0 个答案:

没有答案