1.1.2 • Published 6 years ago
latest-videos v1.1.2
Latest videos
Latest videos from Facebook, YouTube, Instagram on your website.
Demo
Setup
browser
<script src="https://unpkg.com/latest-videos"></script>
Usage
<div id="something" class="latest-videos"></div>
<script>
LatestVideos.configuration({
"youtube": {
"apiKey": "xxxxxxxxxxxxxxxxxxxxxx",
"playlistId": "PLRgAPfQaF4wGDaI2o-B8Efq0bwfhc48_Q",
"max": 10 //max-limit: 50
},
"facebook": {
"pageId": "worldyouthday",
"max": 10
},
"instagram": {
"accessToken": "xxxxxxxx.xxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"max": 10
},
"layout": {
"container": "#something",
"loadMore": 6
}
});
</script>
Get your own API credentials
Create your YouTube API key. Don't forget restrict your API key by HTTP referrers.
For Instagram get your access token.
Thanks
We used few Font Awesome icons.