YaWK
24.1
Yet another WebKit
|
Facebook Graph API explorer widget - for demo and development purpose only! More...
Public Member Functions | |
__construct ($db) | |
basicOutput () | |
checkAccessToken () | |
checkApiObjectData () | |
checkAppId () | |
checkPageId () | |
checkRequirements () | |
drawGallery () | |
loadJSSDK () | |
makeApiCall () | |
printApiObject () | |
Public Attributes | |
$apiObject | |
$fbExampleAccessToken = '' | |
$fbExampleAppId = '' | |
$fbExampleEndDate = '' | |
$fbExampleFields = 'id,name,description,place,start_time,cover,maybe_count,attending_count,is_canceled' | |
$fbExampleGraphRequest = '/events/' | |
$fbExamplePageId = '' | |
$fbExampleStartDate = '' | |
$fbExampleType = 'future' | |
$fbExampleYearRange = '1' | |
$jsSDKLoaded = 'false' | |
$sinceDate = '' | |
$untilDate = '' | |
Facebook Graph API explorer widget - for demo and development purpose only!
Use Facebook Graph API to get any data from a Facebook Page. Require App ID and Access Token.
This is just an empty example widget for development and demo purpose!
It is recommended to play around with the facebook graph explorer. You can set any api call and fields you like to play around and explore the resulting array. You can use this widget as base for your own facebook api projects.
Definition at line 17 of file fbExample.php.
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::__construct | ( | $db | ) |
Definition at line 47 of file fbExample.php.
References $db, $settings, $value, and YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\checkRequirements().
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::basicOutput | ( | ) |
Definition at line 265 of file fbExample.php.
References $value, YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\loadJSSDK(), and YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\makeApiCall().
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::checkAccessToken | ( | ) |
Definition at line 86 of file fbExample.php.
References die.
Referenced by YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\checkRequirements().
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::checkApiObjectData | ( | ) |
Definition at line 235 of file fbExample.php.
Referenced by YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\printApiObject().
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::checkAppId | ( | ) |
Definition at line 67 of file fbExample.php.
References die.
Referenced by YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\checkRequirements(), and YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\loadJSSDK().
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::checkPageId | ( | ) |
Definition at line 104 of file fbExample.php.
Referenced by YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\checkRequirements().
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::checkRequirements | ( | ) |
Definition at line 60 of file fbExample.php.
References YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\checkAccessToken(), YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\checkAppId(), and YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\checkPageId().
Referenced by YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\__construct().
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::drawGallery | ( | ) |
Definition at line 292 of file fbExample.php.
References $value, YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\loadJSSDK(), and YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\makeApiCall().
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::loadJSSDK | ( | ) |
Definition at line 127 of file fbExample.php.
References YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\checkAppId(), and die.
Referenced by YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\basicOutput(), and YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\drawGallery().
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::makeApiCall | ( | ) |
Definition at line 161 of file fbExample.php.
References date.
Referenced by YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\basicOutput(), YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\drawGallery(), and YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\printApiObject().
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::printApiObject | ( | ) |
Definition at line 247 of file fbExample.php.
References YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\checkApiObjectData(), exit, and YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample\makeApiCall().
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::$apiObject |
object | api result (as object) |
Definition at line 44 of file fbExample.php.
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::$fbExampleAccessToken = '' |
string | your access token (secret word from developers.facebook.com) |
Definition at line 24 of file fbExample.php.
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::$fbExampleAppId = '' |
string | your app ID (from developers.facebook.com) |
Definition at line 20 of file fbExample.php.
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::$fbExampleEndDate = '' |
string | user defined end date |
Definition at line 34 of file fbExample.php.
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::$fbExampleFields = 'id,name,description,place,start_time,cover,maybe_count,attending_count,is_canceled' |
string | fields that should be selected from facebook graph |
Definition at line 28 of file fbExample.php.
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::$fbExampleGraphRequest = '/events/' |
string | your graph request |
Definition at line 26 of file fbExample.php.
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::$fbExamplePageId = '' |
string | your page ID (http://facebook.com/{YOURPAGEID} |
Definition at line 22 of file fbExample.php.
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::$fbExampleStartDate = '' |
string | user defined start date |
Definition at line 32 of file fbExample.php.
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::$fbExampleType = 'future' |
string | which events should be shown? future|past|all |
Definition at line 36 of file fbExample.php.
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::$fbExampleYearRange = '1' |
string | show events of this time range |
Definition at line 30 of file fbExample.php.
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::$jsSDKLoaded = 'false' |
string | true|false was the js SDK loaded? |
Definition at line 42 of file fbExample.php.
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::$sinceDate = '' |
string | events since this date (used for calc) |
Definition at line 38 of file fbExample.php.
YAWK\WIDGETS\FACEBOOK\EXAMPLE\fbExample::$untilDate = '' |
string | events until this date (used for calc) |
Definition at line 40 of file fbExample.php.