The Social Feed widget can show videos from a YouTube channel, a handle, a playlist, a user feed or a search term, on any Elementor page.

YouTube uses an API key rather than an access token, but the widget has one credential field for every network, so the key goes into the field labelled Access Token.

Requirement – This widget is a part of The Plus Addons for Elementor Pro, make sure it’s installed & activated to enjoy all its powers.

Before You Start

  • Edition: Pro — Social Feed ships only in The Plus Addons for Elementor Pro. With Pro deactivated the widget does not render at all, and there is no free version of it.
  • Prerequisite: Elementor (free) installed and active.
  • Widget to enable: go to The Plus Addons > Widgets, search for Social Feed and turn its toggle on.
  • Prerequisite: your server must be able to make outbound HTTPS requests. The feed is fetched server-side while the page renders, not by the visitor’s browser.
  • Prerequisite: a YouTube credential, pasted into the widget’s Access Token field. Getting one is a separate job on YouTube’s own developer site — see How to Get a YouTube API Key for WordPress? (Easy Method).

Add a YouTube feed

  1. Edit the page with Elementor and drag the Social Feed widget onto it.
  2. In Content > Content Feed, pick a Layout and a Style.
  3. Open the item under Social Feeds and set Source to Youtube.
Open a social feeds item and pick the network in the source dropdown.
  1. Paste your YouTube API key into Access Token.
  2. Choose a YouTube Type, then fill the one field it reveals.
  3. Set Max Results to the number of videos you want. The default is 6.

The five YouTube Types

YouTube TypeField it revealsWhat it shows
User feedUsernameVideos from a legacy YouTube username.
HandleHandle NameVideos from a channel’s @handle. Enter it without the @.
Channel (default)Channel IDVideos from a channel id (the string that starts UC…).
PlaylistPlaylist IDVideos in one playlist.
SearchSearch QueryVideos matching a search term.

Find the handle name

Open the channel’s home page. The part of the address that starts with @ is the handle. Type it into Handle Name without the @.

A youtube channel page with the @handle visible in the browser address bar.

Find the channel ID

The channel id is the string beginning UC in the channel’s URL. If the channel only shows a handle, a channel-id finder will convert it for you.

Looking up a youtube channel id from the channel handle.

Find the playlist ID

Open the playlist and copy the value of the list= parameter in the address bar.

A youtube playlist page with the list parameter visible in the address bar.

Settings in a YouTube feed item

SettingWhat it doesDefault
Access TokenYour YouTube API key goes here.empty
YouTube TypeUser feed, Handle, Channel, Playlist or Search.Channel
Video OrderHow the returned videos are sorted.date
Thumbnail SizeWhich thumbnail size the card uses.medium
Category (For Filter)A label for this feed, used by Filter Option when you mix several feeds.empty
Max ResultsHow many videos this feed contributes. 1 to 100.6

Set Layout to Carousel at the top of Content Feed. Columns Manage and Filter Option disappear, and the slider’s own settings move to Style > Carousel.

A youtube video feed running as a carousel on the front end.

How It Behaves

  • The credential field is called Access Token even though YouTube gives you an API key. Paste the key there; there is no separate key field.
  • There are five YouTube Types, not three. Channel is the shipped default.
  • A rejected key produces a visible error card. With an invalid key the page renders Somthing Wrong, Error Code : 400 and the word Youtube.
  • The request is made by your server while the page renders.
What a network source renders when the token is missing or rejected: a pink card reading somthing wrong, the http code, and the network name.

Limitations

  • The YouTube Data API has a daily quota. Once a project’s quota is spent the API stops answering until it resets, and the widget shows the error card. Turning Performance on and leaving Refresh Time at 1 day keeps the number of calls down.
  • A restricted key must allow the YouTube Data API. If you restricted the key to a different API it will be refused.
  • When the connection fails you get a pink card and an HTTP code, not an explanation. With a token that is missing, expired, of the wrong type or simply wrong, the widget renders a card reading Somthing Wrong (that spelling is the plugin’s) followed by 400 and the network name. It does not say which of those things went wrong. The two cases you can tell apart are an entirely empty Access Token, which says Empty Access Token, and X (Twitter), which returns Invalid or expired token. with Error Code : 89.
  • The Maximum Posts and Offset Post fields inside a feed item only affect WP RSS Feed. They are shown whatever Source you pick, but the widget reads them only on the RSS path. For every other source the count control is Max Results (default 6), further down the same item.
  • Filter Option and Columns Manage disappear in the Carousel layout. Both sections are hidden when Layout is Carousel; the carousel has its own column settings under Style > Carousel.
  • The feed is fetched on your server, and cached. Nothing is requested from the visitor’s browser, so a feed that works on one host can fail on another that blocks outbound requests. Refresh Time (default 1 day) decides how often the request is repeated.

Not verified

So you know exactly what has and has not been checked:

  • A feed of real posts from a connected YouTube account. This page was checked without ever entering a real access token, API key or password, so what the finished YouTube feed looks like once connected was not observed for this revision.
  • Video Order and Thumbnail Size. Both need a working key to have any visible effect, so only their labels and defaults are known.
  • Lazy Load. Only Load More was exercised; the Lazy Load branch of More Post Loading Options was not.
  • Styles 2, 3 and 4, and the Style tab as a whole. Only Style 1 and Style 2 were rendered, and no styling control other than Unique Carousel ID was exercised.
  • Performance, Save Data, Delete and Refresh Time. The cached-feed path was never exercised — what is written here about it comes from the panel’s own notes and defaults.
  • On Post Click, FancyBox, the two scrolling bars and Text Limit. Labels and defaults only; no click-through was measured.

Troubleshooting

The page shows "Somthing Wrong" and Error Code : 400

YouTube refused the request. Check the key is pasted into Access Token, that the YouTube Data API v3 is enabled for the project, that any key restriction includes that API, and that the id in the field below YouTube Type is the right kind of id.

It says Empty Access Token

The field is blank — paste the API key.

I entered the handle and nothing comes back

Remove the @. Handle Name expects the handle without it.

The feed stopped part-way through the day

That is usually the API quota. Switch Performance on so the feed is served from your database between refreshes.