add like button Liking a single page

Discussion in 'PHP' started by andalusy, Jul 1, 2010.

  1. #1
    i want to add facebook like button to point to current page automatic , iam using onaracde script

    el7l.com

    any idea ?
     
    andalusy, Jul 1, 2010 IP
  2. mr.noob

    mr.noob Peon

    Messages:
    62
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    mr.noob, Jul 2, 2010 IP
  3. anands

    anands Well-Known Member

    Messages:
    436
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    120
    #3
    anands, Jul 2, 2010 IP
  4. lowridertj

    lowridertj Well-Known Member

    Messages:
    2,882
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    195
    #4
    easiest way would be to use the iframe version on your site.
    it will pull the name, description, thumb image from your header.

    
    <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2FYOUR=DOMAIN=HERE.COM&amp;layout=button_count&amp;show_faces=false&amp;width=450&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=35" style="border: medium none; overflow: hidden; width: 450px; height: 35px;" allowtransparency="true" frameborder="0" scrolling="no"></iframe>
    
    HTML:
    use this information in the header of your page
    
    <meta property="og:title" content="TITLE-OF-PAGE"/>
    <meta property="og:url" content="YOUR-SITE-URL"/>
    <meta property="og:image" content="LINK-TO-IMAGE-ON-YOUR-SITE-50x50"/>
    <meta property="og:description" content="DESCRIPTION-OF-CONTENT"/>
    <meta property="og:site_name" content="SITE-NAME"/>
    
    HTML:

    Details more on facebook at: http://developers.facebook.com/docs/reference/plugins/like
    will generate your iframe code for you.

    Hope this helps.
     
    lowridertj, Jul 2, 2010 IP