Given the url, how can I draw the largest image (in terms of image sizes) on the site? I use it to act as the best representation of site thumbnails.
Similar to the first thumbnail when sharing a URL on Facebook:
http://www.facebook.com/share.php?u=my_website_url
Thumbnail image on Facebook in div:
<div class="UIThumbPager_Thumbs">
Current code (using Javascript and jQuery):
else if (item.link) historyHtml += '<a href=' + item.link + ' class="image" target="_blank"><img src="*SITE THUMBNAIL HERE*" width="111px"></a>';
Please note that the user will be registered on Facebook and will be able to access this thumbnail of the site.
javascript jquery html css
jprim
source share