From 9ff72061f21056760ce06bbe36527aa3637bf4e3 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 2 Apr 2012 22:37:12 +0200 Subject: [PATCH] Facebook: Design issues in the export --- facebook/facebook.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/facebook/facebook.php b/facebook/facebook.php index 64eb3ee2..58ce025b 100755 --- a/facebook/facebook.php +++ b/facebook/facebook.php @@ -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;