YaWK
24.1
Yet another WebKit
|
Facebook Cover widget - Embed current cover image from your Facebook page. More...
Public Member Functions | |
__construct ($db) | |
checkAccessToken () | |
checkAppId () | |
checkRequirements () | |
drawCoverImage () | |
loadJSSDK () | |
makeApiCall () | |
Public Attributes | |
$apiObject | |
$fbCoverAccessToken = '' | |
$fbCoverAppId = '' | |
$fbCoverImageAlt = '' | |
$fbCoverImageClass = '' | |
$fbCoverImageHeight = '' | |
$fbCoverImageStyle = '' | |
$fbCoverImageTitle = '' | |
$fbCoverImageWidth = '' | |
$jsSDKLoaded = 'false' | |
$settings | |
Facebook Cover widget - Embed current cover image from your Facebook page.
Use Facebook Graph API to get you latest cover image of your Facebook Page. Require an App ID and a valid Access Token.
This widget shows always your current (newest / latest) cover image of your Facebook page. It is meant to be used as header on top of your template design - or wherever it makes sense.
Definition at line 17 of file fbCover.php.
YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover::__construct | ( | $db | ) |
fbCover constructor. Loads all widget settings
$db |
Definition at line 46 of file fbCover.php.
References $db, $value, and YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover\checkRequirements().
YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover::checkAccessToken | ( | ) |
check if access token is set
Definition at line 98 of file fbCover.php.
References die.
Referenced by YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover\checkRequirements().
YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover::checkAppId | ( | ) |
check if app id is set
Definition at line 75 of file fbCover.php.
References die.
Referenced by YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover\checkRequirements(), and YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover\loadJSSDK().
YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover::checkRequirements | ( | ) |
call check app id and access token
Definition at line 65 of file fbCover.php.
References YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover\checkAccessToken(), and YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover\checkAppId().
Referenced by YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover\__construct().
YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover::drawCoverImage | ( | ) |
Draws the cover image onto screen.
Definition at line 186 of file fbCover.php.
References YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover\loadJSSDK(), and YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover\makeApiCall().
YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover::loadJSSDK | ( | ) |
Load Facebook JS Code
Definition at line 120 of file fbCover.php.
References YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover\checkAppId(), and die.
Referenced by YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover\drawCoverImage().
YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover::makeApiCall | ( | ) |
Prepare and make the API call and decode the json into the apiObject property
Definition at line 160 of file fbCover.php.
References YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover\$apiObject.
Referenced by YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover\drawCoverImage().
YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover::$apiObject |
object | api result (as object) |
Definition at line 40 of file fbCover.php.
Referenced by YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover\makeApiCall().
YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover::$fbCoverAccessToken = '' |
string | your access token (secret word from developers.facebook.com) |
Definition at line 22 of file fbCover.php.
YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover::$fbCoverAppId = '' |
string | your app ID (from developers.facebook.com) |
Definition at line 20 of file fbCover.php.
YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover::$fbCoverImageAlt = '' |
string | any image alt tag you like (for screenreaders) |
Definition at line 32 of file fbCover.php.
YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover::$fbCoverImageClass = '' |
string | css class to be set on the cover image |
Definition at line 24 of file fbCover.php.
YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover::$fbCoverImageHeight = '' |
string | image height in px or % |
Definition at line 28 of file fbCover.php.
YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover::$fbCoverImageStyle = '' |
string | custom css style attributes |
Definition at line 34 of file fbCover.php.
YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover::$fbCoverImageTitle = '' |
string | any title you like (important for SEO) |
Definition at line 30 of file fbCover.php.
YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover::$fbCoverImageWidth = '' |
string | image width in px or % |
Definition at line 26 of file fbCover.php.
YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover::$jsSDKLoaded = 'false' |
string | true|false was the js SDK loaded? |
Definition at line 36 of file fbCover.php.
YAWK\WIDGETS\FACEBOOK\FBCOVER\fbCover::$settings |
array | array: holds the current widget settings |
Definition at line 38 of file fbCover.php.