(function (Popcorn){
/**
- * Facebook Popcorn plug-in
- * Places Facebook's "social plugins" inside a div ( http://developers.facebook.com/docs/plugins/ )
- * Sets options according to user input or default values
- * Options parameter will need a target, type, start and end time
- * Type is the name of the plugin in fbxml format. Options: LIKE (default), LIKE-BOX, ACTIVITY, FACEPILE
- * Target is the id of the document element that the text needs to be attached to. This target element must exist on the DOM
- * Start is the time that you want this plug-in to execute
- * End is the time that you want this plug-in to stop executing
- *
- * @param {Object} options
- *
- * Example:
- var p = Popcorn('#video')
- .facebook({
- type : "LIKE-BOX",
- target: "likeboxdiv",
- start : 3,
- end : 10,
- href : "http://www.facebook.com/senecacollege",
- show_faces: "true",
- header: "false"
- } )
- * This will show how many people "like" Seneca College's Facebook page, and show their profile pictures (show_faces)
- *
- Other than the mandatory four parameters, there are several optional parameters (Some options are only applicable to certain plugins)
- * Font - the font of the text contained in the plugin. Options: arial / segoe ui / tahoma / trebuchet ms / verdana / lucida grande
- * Action - like button will either "Like" or "Recommend". Options: recommend / like(default)
- * Recommendations - shows recommendations, if any, in the bottom half of activity feed. Options: true / false(default)
- * Border_color - border color of the activity feed. Names (i.e: "white") and html color codes are valid
- * Max_rows - number of rows to disperse pictures in facepile. Default is 1
- * Stream - displays a the latest posts from the specified page's wall. Options: true / false(default)
- * Header - displays the title of like-box or activity feed. Options: true / false(default)
- * Colorscheme - changes the color of almost all plugins. Options: light(default) / dark
- * Layout - changes the format of the 'like' count (written in english or a number in a callout).
- Options: box_count / button_count / standard(default)
- * Show_faces - show pictures beside like button and like-box. Options: true / false(default)
- * Href - url to apply to the plugin. Default is current page
- * Site - href for activity feed. No idea why it must be "site". Default is current page
- * Type - determines which plugin to create
- */
++<<<<<<< HEAD
+ * Facebook Popcorn plug-in
+ * Places Facebook's "social plugins" inside a div ( http://developers.facebook.com/docs/plugins/ )
+ * Sets options according to user input or default values
+ * Options parameter will need a target, type, start and end time
+ * Type is the name of the plugin in fbxml format. Options: LIKE (default), LIKE-BOX, ACTIVITY, FACEPILE
+ * Target is the id of the document element that the text needs to be attached to. This target element must exist on the DOM
+ * Start is the time that you want this plug-in to execute
+ * End is the time that you want this plug-in to stop executing
+ *
+ * Other than the mandatory four parameters, there are several optional parameters (Some options are only applicable to certain plugins)
+ * Action - like button will either "Like" or "Recommend". Options: recommend / like(default)
+ * Always_post_to_friends - live-stream posts will be always be posted on your facebook wall if true. Options: true / false(default)
+ * Border_color - border color of the activity feed. Names (i.e: "white") and html color codes are valid
+ * Colorscheme - changes the color of almost all plugins. Options: light(default) / dark
+ * Event_app_id - an app_id is required for the live-stream plugin
+ * Font - the font of the text contained in the plugin. Options: arial / segoe ui / tahoma / trebuchet ms / verdana / lucida grande
+ * Header - displays the title of like-box or activity feed. Options: true / false(default)
+ * Href - url to apply to the plugin. Default is current page
+ * Layout - changes the format of the 'like' count (written in english or a number in a callout).
+ * Options: box_count / button_count / standard(default)
+ * Max_rows - number of rows to disperse pictures in facepile. Default is 1
+ * Num_posts - number of posts to display with comments plugin. Default is 10
+ * Recommendations - shows recommendations, if any, in the bottom half of activity feed. Options: true / false(default)
+ * Show_faces - show pictures beside like button and like-box. Options: true / false(default)
+ * Site - href for activity feed. No idea why it must be "site". Default is current page
+ * Stream - displays a the latest posts from the specified page's wall. Options: true / false(default)
+ * Type - determines which plugin to create. Case insensitive
+ * Xid - unique identifier if more than one live-streams are on one page
+ *
+ * @param {Object} options
+ *
+ * Example:
+ var p = Popcorn('#video')
+ .facebook({
+ type : "LIKE-BOX",
+ target: "likeboxdiv",
+ start : 3,
+ end : 10,
+ href : "http://www.facebook.com/senecacollege",
+ show_faces: "true",
+ header: "false"
+ } )
+ * This will show how many people "like" Seneca College's Facebook page, and show their profile pictures
+ */
+
+ var ranOnce = false;
-
+
+ function toggle( container, display ) {
+ if ( container ) {
+ container.style.display = display;
+
+ return;
+ }
+
+ setTimeout(function() {
+ toggle( container, display );
+ }, 10 );
+ }
+
Popcorn.plugin( "facebook" , {
manifest:{
about:{
* options variable
*/
start: function( event, options ){
++<<<<<<< HEAD
+ if ( !!options._container ) {
+ options._container.style.display = "inline";
+ }
++=======
+ toggle( options._container, "inline" );
++>>>>>>> af5e535d76479f6c0825ad3f6517930f6c89c798
},
/**
* @member facebook
* options variable
*/
end: function( event, options ){
++<<<<<<< HEAD
+ if ( !!options._container ) {
+ options._container.style.display = "none";
+ }
++=======
+ toggle ( options._container, "none" );
++>>>>>>> af5e535d76479f6c0825ad3f6517930f6c89c798
}
});