latest-videos

1.1.2 • Public • Published

Latest videos

Latest videos from Facebook, YouTube, Instagram on your website.

Demo

Try it out!

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.

Readme

Keywords

none

Package Sidebar

Install

npm i latest-videos

Weekly Downloads

54

Version

1.1.2

License

MIT

Unpacked Size

23.7 kB

Total Files

12

Last publish

Collaborators

  • bebjakub