Content – Facebook Feed

Incorporating a Facebook Feed

Prerequisites

Some of the items here require simple cut and paste, and some require a small amount of programming. This will demonstrate some of the capability of using Facebook as a feed. Using Facebook or authentication is also discussed.

Summary

This is some example code for embedding a Facebook feed into a web site.

Video

There is no video for this lecture. You simply need to embed the code below to do a Facebook feed.

Reference Materials

<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/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like-box" data-href="http://www.facebook.com/pages/Daytona-State-College-of-Technology/223385791022995" data-width="250" 
     data-show-faces="true" data-stream="true" data-header="true"></div> 

The Facebook developers web site – http://developers.facebook.com/docs/guides/web/ 

Additional Information

COP 4813 Lectures