sharing on facebook

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

  1. maildigger

    maildigger Power Member

    Joined:
    Jan 30, 2009
    Messages:
    764
    Likes Received:
    101
    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:
    55
    Likes Received:
    14
    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