1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

sharing on facebook

Discussion in 'Web Design' started by maildigger, Nov 16, 2009.

  1. maildigger

    maildigger Power Member

    Joined:
    Jan 30, 2009
    Messages:
    558
    Likes Received:
    60
    Location:
    EU
    Can someone tell how I can tell facebook which text + picture they need to use when someone clicks on the "share on facebook" button
     
  2. ivantk

    ivantk Registered Member

    Joined:
    Feb 21, 2014
    Messages:
    53
    Likes Received:
    13
    You should include meta tags in your head section of the html like:
    Code:
    <meta property="og:locale" content="en_US" />
    <meta property="og:type" content="article" />
    <meta property="og:title" content="Your title" />
    <meta property="og:description" content="Your description" />
    <meta property="og:url" content="your url" />
    <meta property="fb:admins" content="facebookID" />
    <meta property="og:image" content="path to image" />
    <meta property="og:image" content="path to image 1" />
    You can learn more about Open Graph Protocol, which Facebook uses here: developers.facebook.com/docs/web/share