How to define image to display on a facebook link?
-
Currently I am in the process of relaunching http://www.grassrootsseo.co.uk - however a friend pointed out to me that no image displays when I'm on facebook and link to my site.
Anyone know how to define which image you want Facebook to show when you link to a certain page?
Many thanks...
-
You can add the following to the header section of your home page and choose the image you would like Facebook to use from your home page:
property="og:image" content="http://www.yourdomain.com/yourimage.jpg" />
You can learn more about the Facebook Open Graph markup here.
You may also want to populate the alt attributes of your image tags to make your site more accessible. Right now they are empty.
Edit: This week's White Board Friday is actually all about this, you should check it out.
-
I was looking into it, and didnt know if a specific facebook tag such as the opengraph one or just a generic tag such as:
would be better? Thanks for the reply
