A jQuery plugin which shows a user feed from the most popular social networks.
Currently supports: Facebook, Twitter, VK
<link href="css/style.css" rel="stylesheet" type="text/css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<!--if you don't want to caсhe Twitter posts in cookies, you can skip next two libraries -->
<script src="js/json2.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/function.js"></script>
Create a container for your feed:
<div class="social-feed-container"></div>
Initialize the social-feed plugin:
<script>
$('.social-feed-container').socialfeed({
fb_username:'barack.obama',
fb_limit:2,
vk_username:1,
vk_limit:2,
tw_limit:2,
tw_username:'jack',
length:130,
cookies:true
});
</script>
If you want to change the layout of the feed, you can do it in the php/template.php file.
If you don't need to show the feed from all supported social networks, put the credentials only for those you need.
The Facebook requires an access token in order to get the feed of the user (even if it is public).
To use Facebook feed, please register an application and
put its credentials in php/settings.php