Dave's Brain

Browse - Programming Tips - Why is my webpage missing a preview image when posted on social media sites (like Facebook, Slack, Twitter)

Date: 2016oct25

Q.  Why is my webpage missing a preview image when posted on social media sites (like Facebook, Slack, Twitter)

A.   You need this meta tag:

<meta property="og:image" content="http://mysite.com/images/image.jpg" />
The "og" stands for Facebook's "Open Graph". You can test your page here: https://developers.facebook.com/tools/debug/og/object/ Slack uses the system. There are other tags you can use. Slack calls it unfurling so you can google that. http://www.google.com/search?q=slack+unfurling

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.