Display social-network activity using jQuery
<a href="http://pavelk2.github.io/social-feed/" target="_blank">Social-feed repository</a>
Social-feed is a jQuery plugin which displays messages by a username or a hashtag from the most popular social networks.
Social-feed supports:
<a href="http://facebook.com">Facebook</a>,
<a href="http://instagram.com">Instagram</a>,
<a href="http://vk.com">VK</a>,
<a href="http://plus.google.com">Google+</a>.
<script>
$('.social-feed-container').socialfeed({
//FACEBOOK--------------------
facebook:{
accounts:['@teslamotors','#teslamotors'],
limit:2,
access_token:'YOUR_FACEBOOK_TOKEN' // go to https://developers.facebook.com/tools/explorer/ to get one
},
//VK--------------------
vk:{
accounts:['@125936523','#teslamotors'], //id for users and -id (with minus) for groups
limit:2,
source:'all'
},
//GOOGLEPLUS-------------------
google:{
access_token: 'YOUR_GOOGLEPLUS_TOKEN', // go to https://console.developers.google.com/project, create project, allow Google + API, go to credentials and create an access token for browser use
accounts: ['#teslamotors'],
limit: 2
},
//INSTAGRAM---------------------
instagram:{
accounts:['@teslamotors','#teslamotors'],
client_id:'YOUR_INSTAGRAM_CLIENT_ID', // go to http://instagram.com/developer/clients/manage/, create app and copy your client_id
limit:2
},
//GENERAL SETTINGS--------------
length:130,
show_media:true,
callback: function(){
console.log('all posts are collected');
}
});
</script>
Social-feed is under MIT license.
Written by Pavel Kucherbaev
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Jquery
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#