Categories

.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.0

    options   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
    		});
    });
    
    
  • boxMode

    version added: 6.15.0

    An option to choose between the Like button (false) and the Like box (true).

    Default: false

  • url

    version added: 6.15.0

    A reference to the target page to receive the Like.

    Default: current ePages web page

  • action

    version added: 6.15.0

    Defines whether to show the Like button or the Recommend button. Values: 'like', 'recommend'

    Default: like

  • layout

    version added: 6.15.0

    Defines how to display the total number of likes. Values: 'standard', 'button_count', 'box_count'

    Default: standard

  • send

    version added: 6.15.0

    Specifies whether to include a Send button with the Like button.

    Default: false

  • width

    version added: 6.15.0

    Defines the width of the plugin in pixels.

    Default: 450

  • color

    version added: 6.15.0

    Defines the color scheme for the plugin. Values: 'light', 'dark'

    Default: light

  • showHeader

    version added: 6.15.0

    Specifies whether to display the Facebook header at the top of the plugin.

    Default: false

  • showStream

    version added: 6.15.0

    Specifies whether to display a stream of the latest posts from the Page's wall.

    Default: false

  • destroy

    • .externatcontentGadgetFacebook('destroy')

      version added: 6.15.0

    This method removes the container on which the Google-Plus button has been appended to.