Skip to content

Commit

Permalink
commiting everything
Browse files Browse the repository at this point in the history
  • Loading branch information
zachwe committed Mar 24, 2011
1 parent e4ecc4d commit 33a3159
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions index.php
Expand Up @@ -17,7 +17,8 @@
?>
<html>
<head>

<!--Include JQuery via Google CDN-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
</head>
<body>
<?if($me) {
Expand All @@ -29,24 +30,10 @@
<a href="<?echo $loginUrl;?>">Log In</a>
<? } ?>
<p>Welcome to Facebook Cleanser!</p>
<?
if($me) {
//Get posts from each friend, in order to expand range.
$date = new DateTime('2009-01-01');
$twenty_oh_nine = $date->getTimestamp();
$query = "SELECT post_id, viewer_id, source_id, actor_id, target_id, message, comments, privacy FROM stream WHERE source_id='$me[id]' AND created_time < $twenty_oh_nine";
//$query = "SELECT name, hometown_location, sex, pic_square FROM user WHERE uid = '$me[id]'";
echo $query;
$results = FbQueryProcessor::query($query, $facebook);
foreach( $results as $result) {
foreach($result as $key=>$item) {
print "$key, $item";
print "<br/>";
}
print "<br/>";
}

}
?>
<? if($me) { ?>
<!--use ajax to query the endpoint getFacebookPosts-->

<? } ?>
</body>
</html>

0 comments on commit 33a3159

Please sign in to comment.