Facebook API
Facebook API can be used to build non-automated, authentic, high-quality demonstrative blocks.
Facebook for developers documentationHow to use?
Include these metatags right before <head>
tag is closed.
<head>
<meta property="og:url" content="http://localhost:8080">
<meta property="og:type" content="website">
<meta property="og:title" content="Front">
<meta property="og:description" content="Your description">
</head>
Include this script right after open <body>
tag.
<body>
<script>
window.fbAsyncInit = function () {
FB.init({
appId: '211814435920978',
xfbml: true,
version: 'v2.8'
});
};
(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/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
</body>
Page
<div class="fb-page"
data-href="https://www.facebook.com/htmlstream"
data-tabs="timeline"
data-width="500"
data-height="500">
<blockquote cite="https://www.facebook.com/unify2dev" class="fb-xfbml-parse-ignore">
<a href="https://www.facebook.com/unify2dev">Facebook</a>
</blockquote>
</div>
Post
<div class="fb-post"
data-href="https://www.facebook.com/20531316728/posts/10154009990506729"></div>
Video
How to Share With Just FriendsHow to share with just friends.
Posted by Facebook on Friday, 1 January 2018
<div class="fb-video"
data-href="https://www.facebook.com/facebook/videos/10153231379946729/"
data-width="500"
data-show-text="false">
<blockquote cite="https://www.facebook.com/facebook/videos/10153231379946729/" class="fb-xfbml-parse-ignore">
<a href="https://www.facebook.com/facebook/videos/10153231379946729/">How to Share With Just Friends</a>
<p>How to share with just friends.</p>Posted by
<a href="https://www.facebook.com/facebook/">Facebook</a>
on Friday, 1 January 2018
</blockquote>
</div>
Comments