Search This Blog

Home » » Adding Facebook Recommendations Bar to Website

Adding Facebook Recommendations Bar to Website

Written By Harsha on Wednesday, 8 May 2013 | 19:23

Adding Facebook Recommendations Bar to Website




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<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&appId=515056001848264";
fjs.parentNode.insertBefore(js, fjs);
}
(document, 'script', 'facebook-jssdk'));
</script>
<!--Using XFBML-->
<fb:recommendations-bar href="https://developers.facebook.com/docs/reference/plugins/recommendationsbar/" read_time="5"></fb:recommendations-bar>
<!--Using HTML5-->
<!--<div data-href="https://developers.facebook.com/docs/reference/plugins/recommendationsbar/" data-read-time="5"></div>
-->
<!--Replace APP_ID with existing App ID for example:515056001848205 -->
</body>
</html>

0 comments:

Post a Comment

Like us on Facebook
Follow us on Twitter
Recommend us on Google Plus
Subscribe me on RSS