When users add a link within their posts on my site, I want to show a summary text/image from the URL. This is commmonly done by facebook. But how is it done ?
Any JS library/ inbuilt solution that can help me ?
When users add a link within their posts on my site, I want to show a summary text/image from the URL. This is commmonly done by facebook. But how is it done ?
Any JS library/ inbuilt solution that can help me ?
Use jQuery
$.get("www.google.com", function(data) { do what ever you want to do with the data });
Change the function to extract the page content.
Get function reference http://api.jquery.com/jquery.get/
Other posts which can help