01 August 2013

How to Embed Facebook Post on Website



Recently facebook has introduces a new feature called Embed Post that will let users to easily embedded posts, photos, videos etc on their blogs.


Currently, only a few big media publishers got early access to embeds including Mashable, CNN, The Huffington Post, Bleacher Report and People Magazine. For else you have to wait until officially released.


Using embed features you can shared only public content that share on Pages and personal profiles.


Embed Facebook Post:


Here’s a trick, so you can easily embed any facebook status on your website.


Just open any facebook status and copy the permalink by right-clicking on the date of the post and replace it with URL_HERE in the below code and then copy and paste these code on your website.



<div id=”fb-root”></div>

<script>

(function(d, s, id) {

var js, fjs = d.getElementsByTagName(s)[0];

if (d.getElementById(id))

return;

js = d.createElement(s);

js.id = id;

js.src = “//connect.facebook.net/en_US/all.js#xfbml=1″;

fjs.parentNode.insertBefore(js, fjs);

}(document, ‘script’, ‘facebook-jssdk’));

</script>

<fb:post href=”URL_HERE”></fb:post>



[Via]


The post How to Embed Facebook Post on Website appeared first on Hack Illusion.



No comments:

Post a Comment