When someone shares a link to one of your website's pages on her Timeline, Facebook automatically fetches an image from the linked page and displays it next to the name and URL of the page. Unfortunately, the fetched image can sometimes be unrelated to the page's content or may even be missing from the shared link entirely. To ensure Facebook displays the best image possible when someone shares your page -- and therefore increase that link's click-through rate -- add a few lines of code to the page's HTML code to force Facebook to fetch a specific image.
Add Open Graph Markup
Open Graph is a protocol developed by Facebook that, among other features, lets Web developers add markup tags to their pages to customize the way Facebook displays links to their websites.
Add Open Graph tags to a page by editing its HTML source code:
Open the HTML file in a text editor such as Notepad or in a dedicated HTML editor. Position your cursor before the closing tag near the top of the file and press Enter to create a new line.
Enter the following meta tag:
Replace http://www.example.com/thumb.jpg with the actual link for the image you want Facebook to display when a user shares a link to your site.
- While Facebook accepts thumbnail images that are as small as 200 x 200 pixels, the recommended size is 1200 pixels wide and 630 pixels high.
- To increase the percentage of users clicking the link -- something known as the click-through rate -- consider adding a call to action to the image, such as Click Here or Find Out More.
Save your file and upload it to your Web host.
Other Open Graph Markup Tags
In addition to the thumbnail image, consider using Open Graph markup tags to, for example, customize a shared link's title or description.