YaWK
24.1
Yet another WebKit
|
Facebook Page Feed. More...
Public Member Functions | |
__construct ($db) | |
basicOutput () | |
checkAccessToken () | |
checkApiObjectData () | |
checkAppId () | |
checkPageId () | |
checkRequirements () | |
makeApiCall () | |
printApiObject () | |
Public Attributes | |
$apiObject | |
$dateString | |
$eventDate | |
$fbEventsDatewordCss | |
$fbFeedAccessToken = '' | |
$fbFeedAppId = '' | |
$fbFeedFields = 'picture,message,place,created_time,full_picture,coordinates' | |
$fbFeedGraphRequest = '/me/feed/' | |
$fbFeedLimit = '1' | |
$fbFeedPageId = '' | |
$jsonLink | |
$message | |
$picture | |
$place | |
Facebook Page Feed.
Use Facebook Graph API to get feed data from a Facebook Page. Require App ID and Access Token.
This is just an empty example widget for development and demo purpose!
This Widget gets the latest (limit) posts of your facebook page feed.
Definition at line 14 of file fbFeed.php.
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::__construct | ( | $db | ) |
Definition at line 45 of file fbFeed.php.
References $db, $settings, $value, and YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\checkRequirements().
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::basicOutput | ( | ) |
Definition at line 202 of file fbFeed.php.
References YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\$fbFeedLimit, $i, $now, die, and YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\makeApiCall().
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::checkAccessToken | ( | ) |
Definition at line 84 of file fbFeed.php.
References die.
Referenced by YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\checkRequirements().
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::checkApiObjectData | ( | ) |
Definition at line 172 of file fbFeed.php.
Referenced by YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\printApiObject().
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::checkAppId | ( | ) |
Definition at line 65 of file fbFeed.php.
References die.
Referenced by YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\checkRequirements().
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::checkPageId | ( | ) |
Definition at line 102 of file fbFeed.php.
Referenced by YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\checkRequirements().
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::checkRequirements | ( | ) |
Definition at line 58 of file fbFeed.php.
References YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\checkAccessToken(), YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\checkAppId(), and YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\checkPageId().
Referenced by YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\__construct().
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::makeApiCall | ( | ) |
Definition at line 121 of file fbFeed.php.
References YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\$apiObject, YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\$fbFeedPageId, and die.
Referenced by YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\basicOutput(), and YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\printApiObject().
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::printApiObject | ( | ) |
Definition at line 184 of file fbFeed.php.
References YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\checkApiObjectData(), exit, and YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\makeApiCall().
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::$apiObject |
object | api result (as object) |
Definition at line 29 of file fbFeed.php.
Referenced by YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\makeApiCall().
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::$dateString |
string | posting date |
Definition at line 35 of file fbFeed.php.
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::$eventDate |
string | date of the posting |
Definition at line 33 of file fbFeed.php.
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::$fbEventsDatewordCss |
string | date (time ago) helper |
Definition at line 37 of file fbFeed.php.
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::$fbFeedAccessToken = '' |
string | your access token (secret word from developers.facebook.com) |
Definition at line 21 of file fbFeed.php.
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::$fbFeedAppId = '' |
string | your app ID (from developers.facebook.com) |
Definition at line 17 of file fbFeed.php.
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::$fbFeedFields = 'picture,message,place,created_time,full_picture,coordinates' |
string | fields that should be selected from facebook graph |
Definition at line 25 of file fbFeed.php.
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::$fbFeedGraphRequest = '/me/feed/' |
string | your graph request |
Definition at line 23 of file fbFeed.php.
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::$fbFeedLimit = '1' |
string | show events of this time range |
Definition at line 27 of file fbFeed.php.
Referenced by YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\basicOutput().
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::$fbFeedPageId = '' |
string | your page ID (http://facebook.com/{YOURPAGEID} |
Definition at line 19 of file fbFeed.php.
Referenced by YAWK\WIDGETS\FACEBOOK\FEED\fbFeed\makeApiCall().
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::$jsonLink |
string | the json link |
Definition at line 31 of file fbFeed.php.
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::$message |
string | posting message |
Definition at line 39 of file fbFeed.php.
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::$picture |
string | photo src |
Definition at line 41 of file fbFeed.php.
YAWK\WIDGETS\FACEBOOK\FEED\fbFeed::$place |
string | place |
Definition at line 43 of file fbFeed.php.