Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: a9ce141c4f
Fetching contributors…

Cannot retrieve contributors at this time

executable file 52 lines (45 sloc) 1.335 kB
include_once LIB_PATH.'moods.php';
include_once LIB_PATH.'constants.php';
$picked = $_POST['picked'];
$moods = get_moods();
$fb = new Facebook('aa08653913021c3435f9deef7ed9693b',
$str = $fb->api_client->data_getUserPreference(0);
$mood = intval($str[0]);
$content = '<style>.box {
padding: 10px;
width : 100px;
float : left;
text-align: center;
border: black 1px;
margin-right: 10px;
margin-left: 10px;
cursor: pointer;
border: black solid 2px;
background: orange;
margin-left: 32px;
margin-top: 30px;
h2 {
text-align: center;
font-size: 11px;
.smiley {
font-size: 35pt;
font-weight: bold;
padding: 20px;
<h2><fb:intl>We are pleased to announce that <fb:name useyou="false" uid="'.$fb->user.'"/> is feeling:</fb:intl></h2>
<div class="box"><div class="smiley">'.$moods[$mood][1].'</div><div >
<fb:intl desc="Mood name for \'' . $moods[$mood][1] . '\'">'
$feed = array('fbml' => $content);
$data = array('method'=> 'profileBox',
'content' => array( 'profilebox' => $feed,
'next' => '',
echo json_encode($data);
Jump to Line
Something went wrong with that request. Please try again.