From eb2ef6dec43391631e2989b55bc4d762336680ca Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 22 Aug 2011 18:52:02 -0700 Subject: diaspora admin toggle, update install guide --- addon/facebook/facebook.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'addon/facebook/facebook.php') diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php index ed59daff6..33895f80d 100644 --- a/addon/facebook/facebook.php +++ b/addon/facebook/facebook.php @@ -151,6 +151,8 @@ function fb_get_friends($uid) { logger('facebook: fb_get_friends: ' . $s, LOGGER_DATA); $j = json_decode($s); logger('facebook: fb_get_friends: json: ' . print_r($j,true), LOGGER_DATA); + if(! $j->data) + return; foreach($j->data as $person) { $s = fetch_url('https://graph.facebook.com/' . $person->id . '?access_token=' . $access_token); if($s) { -- cgit v1.2.3