Link Preview Feature in XWiki

Hi Users,

No current extension matches the link preview feature, is there is any other way to find it out?

If own macro is the only solution, I need to know that is that possible to achieve link preview feature like below using macro in XWiki

image

Defined an custom macro by myself. Will publish extension later.

That’s great news !

Defined custom macro uses, Jsoup.connect link

and i have defined macro in xwiki page with the following parameter,

{{preview url="http://blogs.msdn.com/b/webdev/archive/2014/04/02/announcing-new-web-features-in-visual-studio-2013-update-2-rc.aspx"/}}

it will fetch the meta details using JSOUP and display it.

At times macro works fine, but some times it is not ?

I checked jsoup manually using the same url but it works fine.

I don’t know the exact root cause? can someone help me out.