aboutsummaryrefslogtreecommitdiffstats
path: root/addon/facebook
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-22 18:52:02 -0700
committerFriendika <info@friendika.com>2011-08-22 18:52:02 -0700
commiteb2ef6dec43391631e2989b55bc4d762336680ca (patch)
treeda2ffcc0410ac70ad82458a39245bdf89eb393a2 /addon/facebook
parent564ade0685470158ac487d9a9f18a21079c729bb (diff)
downloadvolse-hubzilla-eb2ef6dec43391631e2989b55bc4d762336680ca.tar.gz
volse-hubzilla-eb2ef6dec43391631e2989b55bc4d762336680ca.tar.bz2
volse-hubzilla-eb2ef6dec43391631e2989b55bc4d762336680ca.zip
diaspora admin toggle, update install guide
Diffstat (limited to 'addon/facebook')
-rw-r--r--addon/facebook/facebook.php2
1 files changed, 2 insertions, 0 deletions
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) {