Facebook Fan Page

Phoca Gallery - image gallery extension
paulo.joomla
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 31 May 2011, 17:58

Re: Facebook Fan Page

Post by paulo.joomla »

Hi aosaos

You find solution for your problem?

I have same problem.

where i can find the fanpage id & name?

Regard
paulo.joomla
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 31 May 2011, 17:58

Re: Facebook Fan Page

Post by paulo.joomla »

any solution?!
beeeruss
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 01 Jul 2011, 05:48

Re: Facebook Fan Page

Post by beeeruss »

Has there been any progress on this? I am still running in to the same problem. Seems like it is looking for a different session ID but I have no idea how to find this.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Facebook Fan Page

Post by Jan »

Hi, I still didn't find any relevant information for this issue :-( :-(

Jan
If you find Phoca extensions useful, please support the project
ppto_1982
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 15 Jul 2011, 08:49

Re: Facebook Fan Page

Post by ppto_1982 »

Hi all,

I think that you have faced to the problem wrongly. I've checked that the albums and the images are obtained using the API ' Legacy REST API'. This API is deprecated and has no method to obtain images for a page. If we use the API 'Graph API', we can obtain,

the pages of an user,

Code: Select all

https://graph.facebook.com/me/accounts
the albums of a page,

Code: Select all

https://graph.facebook.com/19292868552/albums
and the images of an album,

Code: Select all

https://graph.facebook.com/20531316728/photos 

So,

1/ We must obtain all accounts of an user

2/ We must replace the call to api method from

Code: Select all

$facebook->api(array('method' => 'photos.getAlbums', 'aids' => $aid));
to

Code: Select all

$facebook->api('/200209080028856/albums');
3/ We must parse the result of this query to adapt it to our interface.

(This changes must be done only in 'administrator\components\com_phocagallery\libraries\phocagallery\facebook\fb.php')

I think that this is the solution of this problem and soon you will have hear from me
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Facebook Fan Page

Post by Jan »

Hi, thank you for this info.

Jan
If you find Phoca extensions useful, please support the project
daniel.boettner
Phoca Member
Phoca Member
Posts: 14
Joined: 17 Jun 2011, 08:58

Re: Facebook Fan Page

Post by daniel.boettner »

Hi there,

I did not code with facebook api myself. And did not yet have the time to look into the facebook part of phoca gallery code.

Is there a quick way to add the suggested things to the component to enable import(/export) from(/to) facebook fan pages?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Facebook Fan Page

Post by Jan »

Hi, I didn't find time to look at it yet, so cannot give any advice. :-(

Jan
https://www.phoca.cz/phoca-needs-your-help/
If you find Phoca extensions useful, please support the project
cool-zero
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 25 Jul 2011, 13:05

Re: Facebook Fan Page

Post by cool-zero »

Hey ppto_1982,

did you find a solution?
cool-zero
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 25 Jul 2011, 13:05

Re: Facebook Fan Page

Post by cool-zero »

Hey guys,
I've done it myself and it works! :)

Here is my solution:
I've adjusted 3 files.
- joomlaroot/administrator/components/com_phocagallery/libraries/phocagallery/facebook/fb.php
- joomlaroot/administrator/components/com_phocagallery/views/phocagalleryfba/tmpl/default.php
- joomlaroot/administrator/components/com_phocagallery/models/phocagalleryc.php

who wants can see the exact modifications with a margin tool.

important:
In the administration area you have to enter the UserId of the Facebook Fan Page. The whole token, session key and Secret does not fit.
As long as I still have not figured out how to solve the problem, the user must be logged into facebook, and only then can be start an import.

Here is the zip files with changes:
https://skydrive.live.com/redir.aspx?ci ... BA92E0!123

Regards
cool-zero
Locked