author alexhermann

 Methods

Constructor

__construct(array $options) 

Parameters

$options

array

Getter: likebutton

get() : \likebutton

Returns

\likebuttonhtml/xfbml/iframe

Getter: action

getAction() : String

Returns

String

Getter: colorscheme

getColorscheme() : String

Returns

String

Getter: font

getFont() : String

Returns

String

Getter: height

getHeight() : String

Returns

String

Getter: href

getHref() : String

Returns

String

Getter: layout

getLayout() : String

Returns

String

Getter: ref

getRef() : String

Returns

String

Getter: send

getSend() : String

Returns

String

Getter: show_faces

getShowFaces() : String

Returns

String

Getter: type

getType() : String

Returns

String

Getter: width

getWidth() : String

Returns

String

Setter: action

setAction(String $action) : void

Parameters

$action

String

Setter: colorscheme

setColorscheme(String $colorscheme) : void

Parameters

$colorscheme

String

Setter: font

setFont(String $font) : void

Parameters

$font

String

Setter: height

setHeight(String $height) : void

Parameters

$height

String

Setter: href

setHref(String $href) : void

Parameters

$href

String

Setter: layout

setLayout(String $layout) : void

Parameters

$layout

String

Setter: ref

setRef(String $ref) : void

Parameters

$ref

String

Setter: send

setSend(String $send) : void

Parameters

$send

String

Setter: show_faces

setShowFaces(String $show_faces) : void

Parameters

$show_faces

String

Setter: template

setType($type) : void

Parameters

$type

Setter: width

setWidth(String $width) : void

Parameters

$width

String

likeButtonHtml5()

likeButtonHtml5() 

likeButtonIframe()

likeButtonIframe() 

likeButtonXfbml()

likeButtonXfbml() 

 Properties

 

$action 

Default width: 300px

 

$colorscheme 

Options: 'light', 'dark'

 

$font 

Options: 'arial', 'lucida grande', 'segoe ui', 'tahoma', 'trebuchet ms', 'verdana'

 

$height 

Options: 'like', 'recommend'

 

$href 

The XFBML version defaults to the current page

 

$layout 

Minimum width: 225 pixels. Minimum increases by 40px if action is 'recommend' by and increases by 60px if send is 'true'. Default width: 450 pixels. Height: 35 pixels (without photos) or 80 pixels (with photos). button_count - displays the total number of likes to the right of the button. Minimum width: 90 pixels. Default width: 90 pixels. Height: 20 pixels box_count - displays the total number of likes above the button. Minimum width: 55 pixels. Default width: 55 pixels. Height: 65 pixels

 

$ref 

The ref attribute causes two parameters to be added to the referrer URL when a user clicks a link from a stream story about a Like action: fb_ref - the ref parameter fb_source - the stream type ('home', 'profile', 'search', 'other') in which the click occurred and the story type ('oneline' or 'multiline'), concatenated with an underscore.

 

$send 

This only works with the XFBML version

 

$show_faces 
 

$type 
 

$width