Properties

$helpers

$helpers

Helpers to load with this helper.

$__fbShareScript

$__fbShareScript

Default Facebook.Share javascript URL

$__fbFeedUrl

$__fbFeedUrl

Default Facebook.feed URL

$locale

$locale

locale, settable in the constructor

$loginOption

$loginOption

Methods

__construct()

__construct(\View $View,  $settings)

Loadable construct, pass in locale settings Fail safe locale to 'en_US'

Parameters

\View $View
$settings

info()

info( $name) : string

Get the info on this plugin

Parameters

$name

Returns

string —

plugin version

html()

html() : string

HTML XMLNS tag (required)

Returns

string —

of html header

registration()

registration( $options,  $label)

Register Button $this->Facebook->init() is required for this

Parameters

$options
$label

login()

login( $options,  $label) : string

Login Button $this->Facebook->init() is required for this

Parameters

$options
$label

Returns

string —

XFBML tag

logout()

logout( $options,  $label) : string

Logout Button $this->Facebook->init() is required for this

Parameters

$options
$label

Returns

string —

XFBML tag for logout button

disconnect()

disconnect( $options) : string

Unsubscribe Button - Function which creates link for disconnecting user from the specific application $this->Facebook->init() is required for this

Parameters

$options

Returns

string —

Link for disconnect button

feed()

feed( $text,  $options,  $link_options)

Display a feed URL with custom text and images

Parameters

$text
$options
$link_options

share()

share( $url,  $options) : string

Share this page

Parameters

$url
$options

Returns

string —

XFBML tag along with shareJs script

picture()

picture( $uid,  $options) : string

Profile Picture of Facebook User $facebook->init() is required for this

Parameters

$uid
$options

Returns

string —

fb tag for profile picture or empty string if uid is not present

sendbutton()

sendbutton( $url,  $options) : string

New send social plugin $facebook->init() is required for this

Parameters

$url
$options

Returns

string —

XFBML tag along with shareJs script

likebox()

likebox( $url,  $options)

Build a like box $facebook->init() is required for this

Parameters

$url
$options

fanbox()

fanbox( $options) : string

Build a become a fan, fanbox $facebook->init() is required for this

Parameters

$options

Returns

string —

xfbhtml tag

livestream()

livestream( $options) : string

Build a livestream window to your live stream app on facebook $facebook->init() is required for this

Parameters

$options

Returns

string —

xfbhtml tag

comments()

comments( $options) : string

Build a facebook comments area.

$facebook->init() is required for this

Parameters

$options

Returns

string —

xfbhtml tag

recommendations()

recommendations( $options) : string

Build a facebook recommendations area.

$facebook->init() is required for this

Parameters

$options

Returns

string —

xfbhtml tag

friendpile()

friendpile( $options) : string

Build a facebook friendpile area.

$facebook->init() is required for this

Parameters

$options

Returns

string —

xfbhtml tag

activity()

activity( $options) : string

Build a facebook activity feed area.

$facebook->init() is required for this

Parameters

$options

Returns

string —

xfbhtml tag

like()

like( $options) : string

Build a facebook like box $facebook->init() is required for this

Parameters

$options

Returns

string —

xfbhtml tag

init()

init(array $options,  $reload) : string

HTML XMLNS tag (required) Facebook Auth 2.0 support

Parameters

array $options
$reload

Returns

string —

of scriptBlock for FB.init() or error

__fbTag()

__fbTag( $tag,  $label,  $options)

Generate a facebook tag

Parameters

$tag
$label
$options