]> git.mxchange.org Git - friendica-addons.git/commitdiff
Facebook: Design issues in the export
authorMichael Vogel <icarus@dabo.de>
Mon, 2 Apr 2012 20:37:12 +0000 (22:37 +0200)
committerMichael Vogel <icarus@dabo.de>
Mon, 2 Apr 2012 20:37:12 +0000 (22:37 +0200)
facebook/facebook.php

index 64eb3ee241a28810b994e44700573c9a228bcc9f..58ce025bb624fa1e6e858315f4cffe3cefb82c2b 100755 (executable)
@@ -1270,8 +1270,14 @@ function fb_consume_stream($uid,$j,$wall = false) {
                        // don't store post if we don't have a contact
 
                        if(! x($datarray,'contact-id')) {
-                               logger('no contact: post ignored');
-                               continue;
+                               if (get_config('facebook', 'pages')) {
+                                       // If no user is found then post it under the own id.
+                                       // Definitely a quickhack
+                                       $datarray['contact-id'] = $self[0]['id'];
+                               } else {
+                                       logger('no contact: post ignored');
+                                       continue;
+                               }
                        }
 
                        $datarray['verb'] = ACTIVITY_POST;