# Link Preview Feature in XWiki

**URL:** <https://forum.xwiki.org/t/link-preview-feature-in-xwiki/866>\
**Category:** Help / Discuss\
**Tags:** ckeditor, preview, link, macro\
**Created:** [November 14, 2017, 12:23pm UTC](https://forum.xwiki.org/t/link-preview-feature-in-xwiki/866 "2017-11-14T12:23:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prase09](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/p/a587f6/32.png) [@prase09](https://forum.xwiki.org/u/prase09)\
**Post date:** [November 14, 2017, 12:24pm UTC](https://forum.xwiki.org/t/link-preview-feature-in-xwiki/866/1 "2017-11-14T12:24:00Z")

</div>

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](https://discourse.xwiki.org/uploads/default/original/1X/5ca180cbba878102f38e745d024e4575ce9f9289.png)

---

<div class="post-metadata">

**Author:** ![prase09](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/p/a587f6/32.png) [@prase09](https://forum.xwiki.org/u/prase09)\
**Post date:** [November 30, 2017, 12:24pm UTC](https://forum.xwiki.org/t/link-preview-feature-in-xwiki/866/2 "2017-11-30T12:24:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [November 30, 2017, 1:47pm UTC](https://forum.xwiki.org/t/link-preview-feature-in-xwiki/866/3 "2017-11-30T13:47:19Z")

</div>

> [@prase09](#):
>
> Will publish extension later.

That’s great news !

---

<div class="post-metadata">

**Author:** ![prase09](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/p/a587f6/32.png) [@prase09](https://forum.xwiki.org/u/prase09)\
**Post date:** [January 17, 2018, 11:52am UTC](https://forum.xwiki.org/t/link-preview-feature-in-xwiki/866/4 "2018-01-17T11:52:24Z")

</div>

Defined custom macro uses, `Jsoup.connect` [link](https://jsoup.org/download)

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.
