Ambuj Sharma
Ambuj Sharma

Reputation: 106

How to implement facebook and g+ like link previews with client side languages

What the real coding involved in making these link previews..means which languages? How can we extract meta tag information in a website. I know these all requires AJAX but I want a bit more clarification to make it for my website !!!

And one more important doubt is can I do it by just using client side languages like extracting meta tag dynamically by javascript function?

Upvotes: 4

Views: 3190

Answers (3)

Nanook Kowalczyk
Nanook Kowalczyk

Reputation: 1

Make a redirect page. Past the url into facebook and let it cache. Change redirect before you press post.

Upvotes: 0

Aaron Digulla
Aaron Digulla

Reputation: 328624

See Is there open-source code for making 'link preview' text and icons, like in facebook?

As for the second part of the question: No, you can't because of the same origin policy.

Upvotes: 0

Ben Clayton
Ben Clayton

Reputation: 82219

I asked this question before, and got a good answer. Is there open-source code for making 'link preview' text and icons, like in facebook?

The solution there used AJAX and PHP - it links to this site: http://www.99points.info/2010/07/facebook-like-extracting-url-data-with-jquery-ajax-php/

Upvotes: 3

Related Questions