Skip to content

HTTPS clone URL

Subversion checkout URL

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

Cannot retrieve contributors at this time

executable file 52 lines (45 sloc) 1.335 kB
<?php
include_once LIB_PATH.'moods.php';
include_once LIB_PATH.'constants.php';
$picked = $_POST['picked'];
$moods = get_moods();
$fb = new Facebook('aa08653913021c3435f9deef7ed9693b',
'f902d96f663db49e83c80d83d1e93725');
$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;
color:#3B5998;
}
.smiley {
font-size: 35pt;
font-weight: bold;
padding: 20px;
}
</style>
<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] . '\'">'
.$moods[$mood][0]
.'</fb:intl></div></div>';
$feed = array('fbml' => $content);
$data = array('method'=> 'profileBox',
'content' => array( 'profilebox' => $feed,
'next' => 'http://apps.srush2.devrs006.facebook.com/mysmiley/',
));
echo json_encode($data);
Jump to Line
Something went wrong with that request. Please try again.