开发者

Facebook Share and Like button display same count - that's not right

开发者 https://www.devze.com 2023-02-06 07:55 出处:网络
How come the Share and Like button have the same count? I just implemented the Like button today and should only have around 2-3 likes.

How come the Share and Like button have the same count? I just implemented the Like button today and should only have around 2-3 likes.

You can see my problem here: http://www.norwegianfashion.no/news/ofw-forbids-fur-on-the-catwalk/

The code I use is this:

        <div class="share">
          <div class="face_share">
            <a name="fb_share" type="button_count" href="http://开发者_开发知识库www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>  
          </div> 
          <div class="face_like">
            <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&amp;layout=button_count&amp;show_faces=false&amp;width=130&amp;action=like&amp;colorscheme=light&amp;font=arial" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:130px; height:20px;"></iframe>
          </div>
          <div class="twitter">
            <a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="norw_fashion">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> 
          </div>
        </div>


Both functions are doing the same thing now:

Share is still an option, however we merged the external count so that the count represents total interactions with the URL.

Additionally, ‘like’ still gives you the ability to publish an image when a comment is added (through the XFBML version).

Source.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号