Skip to content

Instantly share code, notes, and snippets.

@amaseda
Created March 1, 2016 15:29
Show Gist options
  • Save amaseda/0c47f51ef43aa6a7c392 to your computer and use it in GitHub Desktop.
Save amaseda/0c47f51ef43aa6a7c392 to your computer and use it in GitHub Desktop.
atg-fb-widget

Include the JavaScript SDK on your page once, ideally right after the opening tag.

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5&appId=1705906936318742";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

Place the code for your plugin wherever you want the plugin to appear on your page.

<div class="fb-page" data-href="https://www.facebook.com/allthingsgomusic" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="false"><div class="fb-xfbml-parse-ignore"><blockquote cite="https://www.facebook.com/allthingsgomusic"><a href="https://www.facebook.com/allthingsgomusic">All Things Go</a></blockquote></div></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment