.volume(0)
.play()
.facebook({
- id: "fb-like",
type: "LIKE",
target: 'likediv'
} )
.facebook({
- id: "fb-likebox",
href: "http://www.facebook.com/senecacollege",
type: "LIKE-BOX",
show_faces: "true",
target: 'likeboxdiv'
} )
.facebook({
- id: "fb-feed",
href: "http://popcornjs.org/",
type: "ACTIVITY",
target: 'activitydiv'
} )
.facebook({
- id: "fb-facepile",
href: "http://www.facebook.com/senecacollege",
type: "FACEPILE",
target: 'facepilediv'
* Example:
var p = Popcorn('#video')
.facebook({
- id: "fb-likebox",
href: "http://www.facebook.com/senecacollege",
type: "LIKE-BOX",
show_faces: "true",
// facebook script requires a div named fb-root
if( !document.getElementById('fb-root') ) {
var fbRoot = document.createElement( 'div' );
- fbRoot.id = "fb-root";
+ fbRoot.setAttribute('id', "fb-root");
document.body.appendChild( fbRoot );
//initialize facebook JS SDK
window.fbAsyncInit = function() {