sharing on facebook

maildigger

Senior Member
Jan 30, 2009
861
143
Can someone tell how I can tell facebook which text + picture they need to use when someone clicks on the "share on facebook" button
 
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
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock