Is there any way to extract data from url like facebook does?
I refered many links but this is using php code. This- http://www.99points.info/2010/07/facebook-like-extra
The link on the page I posted before was unfortunately dead but it is fixed now.
http://nalgorithm.wordpress.com/2011/12/05/embedded-url-representation/
As I stated there, I am working on the service version of this tool so that other webapps can make use of it just by (jquery) and a service call.
Take a look at this open-source project:
http://nalgorithm.wordpress.com/2011/12/05/embedded-url-representation/
It is actually a class library, which is called by an MVC application client by using JQuery and its AJAX features.
It uses AgilityPack beneath but there are so many other issues you have to handle, like encoding.
For parsing HTML I would recommend you taking a look at HTML Agility Pack.