Skip to content

Instantly share code, notes, and snippets.

@equijada001
Created March 1, 2013 17:45
Show Gist options
  • Save equijada001/5066391 to your computer and use it in GitHub Desktop.
Save equijada001/5066391 to your computer and use it in GitHub Desktop.
Demonstrates different ways to display a specific image in a Facebook share link
<meta property="og:image" content="https://example.com/image.png" />
or directly inline (email) and for older versions of the facebook sharer
<link rel="image_src" type="image/jpeg" href="https://example.com/image.png" />
or
http://www.facebook.com/sharer.php?s=100&p[title]=titlehere&p[url]=http://www.yoururlhere.com&p[summary]=yoursummaryhere&p[images][0]=http://www.urltoyourimage.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment