Skip to content

Instantly share code, notes, and snippets.

@pavelk2
Created July 4, 2014 19:27
Show Gist options
  • Save pavelk2/af1e15e49a9029ab0e61 to your computer and use it in GitHub Desktop.
Save pavelk2/af1e15e49a9029ab0e61 to your computer and use it in GitHub Desktop.
<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment