Re: Facebook Fan Page
Posted: 09 Aug 2011, 17:44
I just got this error
Notice: Undefined index: data in .../administrator/components/com_phocagallery/libraries/phocagallery/facebook/fb.php on line 113
Notice: Undefined index: data in .../administrator/components/com_phocagallery/libraries/phocagallery/facebook/fb.php on line 113
Code: Select all
99: $userID = $session['uid'];
100: $facebook = self::getAppInstance($appid, $appsid, $session);
101:
102: $facebook->setSession($session);
103:
104: $albums = false;
105: if ($aid > 0) {
106: //$albums = $facebook->api(array('method' => 'photos.getAlbums'));
107: $albums = $facebook->api('/' . $userID . '/albums');
108: } else {
109: //$albums = $facebook->api(array('method' => 'photos.getAlbums', 'aids' => $aid));
110: $albums = $facebook->api('/' . $userID . '/albums');
111: }
112:
113: return $albums['data'];
114: }