Kubi
Kubi

Reputation: 2169

Facebook Like Link Sharing on Status Updates

I want to implement a text box for link sharing but once I copy the link, I want it to show a thumbnail of the link like in facebook. Any ideas how to implement this ? Should I write a javascript to get the screenshot of the given link ? Any help would be greatly appreciated !

Thanks in advance,

Upvotes: 1

Views: 435

Answers (2)

vNext
vNext

Reputation: 1122

using HtmlAgilityPack to down load html and fetch the image url

HtmlWeb web = new HtmlWeb();
HtmlDocument doc = web.Load(url);
doc.DocumentNode.SelectNodes("//link[@rel='image_src']");

good luck!

Upvotes: 1

Kris Ivanov
Kris Ivanov

Reputation: 10598

that is done on the server, not possible only with JavaScript, unless you get some crazy activeX, etc., or you can try one of those thumbnail providers and use their API, http://snapcasa.com/

Upvotes: 0

Related Questions