$url = "https://graph.facebook.com/".$post_to_page."/feed?access_token=".$access_token;
+ $first_time = ($lastcreated == "");
+
if ($lastcreated != "")
$url .= "&since=".urlencode($lastcreated);
if ($item->created_time > $lastcreated)
$lastcreated = $item->created_time;
+ if ($first_time)
+ continue;
+
if ($item->application->id == get_config('facebook','appid'))
continue;