]> git.mxchange.org Git - friendica-addons.git/blobdiff - fbpost/fbpost.php
fbpost/statusnet/twitter: When messages are fetched the first time for mirroring...
[friendica-addons.git] / fbpost / fbpost.php
index e33ad6262ebfc5369056a4ea3639e0efa10c86e4..1486afdb2ba6efb802cf87075ccfd16c2c813d29 100644 (file)
@@ -1020,6 +1020,8 @@ function fbpost_fetchwall($a, $uid) {
 
        $url = "https://graph.facebook.com/".$post_to_page."/feed?access_token=".$access_token;
 
+       $first_time = ($lastcreated == "");
+
        if ($lastcreated != "")
                $url .= "&since=".urlencode($lastcreated);
 
@@ -1031,6 +1033,9 @@ function fbpost_fetchwall($a, $uid) {
                if ($item->created_time > $lastcreated)
                        $lastcreated = $item->created_time;
 
+               if ($first_time)
+                       continue;
+
                if ($item->application->id == get_config('facebook','appid'))
                        continue;