Social Embeds Docs

Quickly embed feeds and posts from social media straight into your site.


Installation

Unzip the download and place the Social directory in your site/addons directory.

Facebook

Feed

Replace statamic with the username of the page you want to embed.

{{ social:facebook type="feed" username="statamic" }}

Attributes

  • type
  • username
  • width
  • height

Post

Replace 123456789 with the Facebook Post ID of the post you want to embed.

{{ social:facebook type="post" url="123456789" }}

Attributes

  • type
  • url
  • width
  • height

Video

Replace 123456789 with the Facebook Video ID of the video you want to embed.

{{ social:facebook type="video" url="123456789" }}

Attributes

  • type
  • url
  • width
  • height

Twitter

Feed

Replace statamic with the username of the profile you wish to embed.

{{ social:twitter type="feed" username="statamic" }}

Attributes

  • type
  • username

Tweet

Replace https://twitter.com/mijustin/status/1138928591113138176 with the tweet URL of the Tweet you wish to embed.

{{ social:twitter type="tweet" url="https://twitter.com/mijustin/status/1138928591113138176" }}

Attributes

  • type
  • url
  • width

Soundcloud

Track

Replace 123456789 with the track ID of the track you want to embed.

{{ social:soundcloud type="track" track="123456789" }}

Attributes

  • type
  • track
  • height
  • autoplay
  • related
  • comments

YouTube

Video

Replace 123456789 with the Video ID of the video you want to embed.

{{ social:youtube type="video" id="123456789" }}

Attributes

  • type
  • id
  • width
  • height

Additional Information

Bard

If you want to use Social Embeds from within Bard, create a set in Bard with customisable settings.

Other Social Networks

If you want to add support for other social networks, create an issue on Github and we'll look into getting it added.