sharing on facebook

maildigger

Power Member
Joined
Jan 30, 2009
Messages
787
Reaction score
108
Can someone tell how I can tell facebook which text + picture they need to use when someone clicks on the "share on facebook" button
 

ivantk

Registered Member
Joined
Feb 21, 2014
Messages
55
Reaction score
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
 
Top