Page 3 of 8

Re: Facebook Fan Page

Posted: 09 Aug 2011, 17:44
by Jufon
I just got this error

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:	}



Re: Facebook Fan Page

Posted: 09 Aug 2011, 18:36
by cool-zero
can you give me the Userid of the Fan-Page ?
then i will check it.

Re: Facebook Fan Page

Posted: 09 Aug 2011, 18:45
by Jufon
Was my mistake.
Now I can import photos from facebook, but cant export.

Got error: Facebook API Error: parameters uid or session key required (102)

Re: Facebook Fan Page

Posted: 09 Aug 2011, 20:13
by cool-zero
Hey Jufon,
I have only modified the import not the export because I doesn't need it.
But maybe if i have time, then i check this part this weekend.

Re: Facebook Fan Page

Posted: 09 Aug 2011, 20:41
by Jufon
Sounds good!

Re: Facebook Fan Page

Posted: 13 Oct 2011, 22:39
by davoetta
Hi.
Any news on this one?

And can u tell me which version of phoca u modified?

Thanks
Albin

Re: Facebook Fan Page

Posted: 13 Oct 2011, 22:53
by cool-zero
Hi,
I have modified the version 3.0.0.
If you mean with news the problem that Jufon has reported,
I found the problem but I didn't know how to handle it.

error: Facebook API Error: parameters uid or session key required (102) is throw because
the FacebookId is from the FanPage and with this one you can not post pictures. only with your
profileid (for example the admin) can do this.

Re: Facebook Fan Page

Posted: 14 Oct 2011, 07:16
by davoetta
Thanks for your answer.
I use the Phoca Gallery 3.02 - do you know if these files fit also?
Or can you tell me what u have modified, so i can apply the changes to the 3.02 files.

Thanks!
Albin

Re: Facebook Fan Page

Posted: 14 Oct 2011, 10:03
by cool-zero
lock on this post
viewtopic.php?f=1&t=12398&start=10#p61138

I have added there the modified files, you can use a diff-tool like Winmerge to see the
changes.

Re: Facebook Fan Page

Posted: 15 Oct 2011, 16:05
by Mentos
That's great! Is this functionality released in the current Phoca Gallery version?