Facebook render preview

When using javascript sdk, the application opens a dialog with a link, facebook will display some screen for this link based on the og tags in it and place it inside the element with the identifier "UIStoryAttachment".

Is there a way to somehow create the same UIStoryAttachment screen inside a container element of my choice? for example, something similar to:

<div id="storyContainer">
    <div class="fb-story" data-url="MY_PAGE_URL"></div>
</div>

And then:

FB.XFBML.parse(document.getElementById("storyContainer"));

This, of course, does not exist, but is there anything similar in any case?

Thank.

+3
source share

All Articles