Facebook Fan Page

Phoca Gallery - image gallery extension
Jufon
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 09 Aug 2011, 17:39

Re: Facebook Fan Page

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


cool-zero
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 25 Jul 2011, 13:05

Re: Facebook Fan Page

Post by cool-zero »

can you give me the Userid of the Fan-Page ?
then i will check it.
Jufon
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 09 Aug 2011, 17:39

Re: Facebook Fan Page

Post 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)
cool-zero
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 25 Jul 2011, 13:05

Re: Facebook Fan Page

Post 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.
Jufon
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 09 Aug 2011, 17:39

Re: Facebook Fan Page

Post by Jufon »

Sounds good!
davoetta
Phoca Member
Phoca Member
Posts: 11
Joined: 30 Mar 2011, 23:06

Re: Facebook Fan Page

Post by davoetta »

Hi.
Any news on this one?

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

Thanks
Albin
cool-zero
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 25 Jul 2011, 13:05

Re: Facebook Fan Page

Post 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.
davoetta
Phoca Member
Phoca Member
Posts: 11
Joined: 30 Mar 2011, 23:06

Re: Facebook Fan Page

Post 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
cool-zero
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 25 Jul 2011, 13:05

Re: Facebook Fan Page

Post 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.
Mentos
Phoca Member
Phoca Member
Posts: 24
Joined: 15 Oct 2011, 16:03

Re: Facebook Fan Page

Post by Mentos »

That's great! Is this functionality released in the current Phoca Gallery version?
Locked