Abnormal FB like button.

Discussion in 'HTML & Website Design' started by Khaludi92, Oct 9, 2012.

  1. #1
    Hi,

    I have a problem with my FB like button. Here is what i observed about its abnormality;

    1 - When I click like, the count turns to 1 and then drops back to 0 immediately. However, this only happens on new posts, the old ones, are being liked with no issue.

    2 - If i share the link of that post on Facebook, and then when people like the link, the count of that post on the website increases respectively. Once the count (total likes) are anything above 10, I can like the post and the count gets a + 1 with no issue.

    The header of the site has all the necessary meta tags for the like button to work

    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml" onkeypress="keyfind(event)">
    
    <head prefix="og: http://ogp.me/ns/fb#">
    
    <meta name="title" content="xxxxxx" />
    <meta property="og:title" content="xxxxxx"/>
    <meta property="og:site_name" content="xxxxxx"/>
    <meta property="og:url" content="xxxxxx"/>
    <meta property="og:type" content="article" />
    <meta property="fb:app_id" content="xxxxxx"/>
    <meta property="og:image" content="xxxxxx" / >
    Code (markup):
    What am i missing ?
     
    Khaludi92, Oct 9, 2012 IP
  2. suwandichen13

    suwandichen13 Well-Known Member

    Messages:
    618
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    140
    #2
    if you want.. you can Canonlizical your FB buttons. it's normal.
     
    suwandichen13, Oct 9, 2012 IP
  3. Khaludi92

    Khaludi92 Member

    Messages:
    259
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #3
    Do you mean adding this in the header or something else ?

    <link rel="canonical" href="xxxx" />

    I have already added it in the header, and the problem still exists, anyother advice ?
     
    Khaludi92, Oct 9, 2012 IP
  4. suwandichen13

    suwandichen13 Well-Known Member

    Messages:
    618
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    140
    #4
    on FB script.

    last time i my Google + button like yours. but i try to add rel="canonical" on thier script. it's work smoothly.

    you can find that information at G+ badge.
     
    suwandichen13, Oct 9, 2012 IP
  5. Khaludi92

    Khaludi92 Member

    Messages:
    259
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #5
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=xxxxxxxxx";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    Code (markup):
    this is the script, Can you tell me how do i put the canonical link in this
     
    Khaludi92, Oct 9, 2012 IP
  6. suwandichen13

    suwandichen13 Well-Known Member

    Messages:
    618
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    140
    #6
    last time i try like this.

    maybe this can helping you out.

    or you can see on this.
    https://developers.google.com/+/plugins/+1button/
     
    suwandichen13, Oct 9, 2012 IP