How to add additional image options on Digg and Facebook

Thursday, September 2nd, 2010 at 11:26 pm
Category: Programming

Here is a really quick Digg.com and Facebook.com tip:

When a link is shared on digg or facebook, the user gets to cycle through a couple photos on the page to add as a thumbnail.

If you want to add additional images as options all you need to do is add html image tags to your website code and hide them with some css. I prefer to add them directly after the <body> to force them as the default image on digg.

Here is the code :
<img src="replace with image link" style="display:none;"/>

Note: Even though your image does not appear on the web page, it is still being loaded. Be careful using very large images. It can slow your pages load time.

Leave a Reply

Connect with Facebook

You may also like:

Like me on Facebook like all these fine people did

What others are Doing

Blog WebMastered by All in One Webmaster.