Help adding facebook like button to dynamic pages

Discussion in 'Facebook' started by igordr, Sep 26, 2010.

  1. #1
    Hello my friends,

    I am trying to add facebook like button to every page, and status on my website.
    http://lajkuj.info/

    Here what i done:

    Added fb js

    <div id="fb-root"></div>
      
    <script>
      window.fbAsyncInit = function() {
        FB.init({appId: '111385622254096', status: true, cookie: true,
                 xfbml: true});
      };
      (function() {
        var e = document.createElement('script'); e.async = true;
        e.src = document.location.protocol +
          '//connect.facebook.net/en_US/all.js';
        document.getElementById('fb-root').appendChild(e);
      }());
    </script>
    
    Code (markup):
    Then, i added to every page, post this

    <fb:like layout="standard" width="450" href='{$baseurl}/{$ques[i].seo}/{$title}' colorscheme="light"></fb:like>
    Code (markup):
    In head section i have

      <meta property="og:title" content="{$pagetitle}"/>
            <meta property="og:url" content="http://lajkuj.info//{$ques[i].seo}/{$title}"/>
            <meta property="og:site_name" content="Lajkuj.Info {$pagetitle}"/>
            <meta property="fb:app_id" content="111385622254096"/>
            <meta property="og:image" content="http://likeornolike.bon.biz/images/default.75x75.png"/>
    Code (markup):
    I think that everything's done ok... But still, don't working... When i click like, on facebook wall i get

    Igor likes Lajkuj.Info on lajkuj.info.

    No matter which page or post i like...

    Friends, i would be very thankful if someone help me!

    All the best
     
    igordr, Sep 26, 2010 IP
  2. edclam

    edclam Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    Seems like you got this solved...Could you share the solution?

    thanks
    Ed
     
    edclam, Feb 22, 2011 IP