.externalcontentGadgetFacebook()
Categories: UI
.externalcontentGadgetFacebook( [ options ] )
Subclass: de_epages
Inherit: (Subclass: de_epages) .widget()
Plugin: de_epages.externalcontent.gadget.facebook
Description: Create a facebook like button or like box.
-
.externalcontentGadgetFacebook( [ options ] )
version added: 6.15.0options A map of additional options to pass to the method.
The Widget inserts a Facebook like button or like box into the target element on which the widget is executed on.
-
The Widget is executed on a pageelement and is called with passing optional parameters. In this example the facebook like button is implemented and references to the web page of ePages, perfoms the like action and provides the optional send button.
Code:
jQuery.ready({ plugin: [ 'de_epages.externalcontent.gadget.facebook' ], DOM: true }, function($){ var widget = de_epages('<div>').externalcontentGadgetFacebook({ action : "like", layout : "standard", send : true }); });
-
The Widget is executed on a pageelement and is called with passing optional parameters. In this example the facebook like box is implemented and references to a web page of facebook. A facebook url is required. The backgorund color is set to dark. The box shows faces of facebook members, who like the web page and a stream of posts at the page.
Code:
jQuery.ready({ plugin: [ 'de_epages.externalcontent.gadget.facebook' ], DOM: true }, function($){ var widget = de_epages('<div>').externalcontentGadgetFacebook({ boxMode : true, url : "http://www.facebook.com/platform", color : "dark", showFaces : true, showStream : true }); });
-
destroy
-
.externatcontentGadgetFacebook('destroy')
version added: 6.15.0
This method removes the container on which the Google-Plus button has been appended to.
-