Page 2 of 8

Re: Facebook Fan Page

Posted: 31 May 2011, 19:34
by paulo.joomla
Hi aosaos

You find solution for your problem?

I have same problem.

where i can find the fanpage id & name?

Regard

Re: Facebook Fan Page

Posted: 07 Jun 2011, 18:14
by paulo.joomla
any solution?!

Re: Facebook Fan Page

Posted: 01 Jul 2011, 05:51
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.

Re: Facebook Fan Page

Posted: 05 Jul 2011, 16:58
by Jan
Hi, I still didn't find any relevant information for this issue :-( :-(

Jan

Re: Facebook Fan Page

Posted: 15 Jul 2011, 09:13
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

Re: Facebook Fan Page

Posted: 20 Jul 2011, 21:53
by Jan
Hi, thank you for this info.

Jan

Re: Facebook Fan Page

Posted: 21 Jul 2011, 09:02
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?

Re: Facebook Fan Page

Posted: 21 Jul 2011, 22:22
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/

Re: Facebook Fan Page

Posted: 30 Jul 2011, 12:46
by cool-zero
Hey ppto_1982,

did you find a solution?

Re: Facebook Fan Page

Posted: 07 Aug 2011, 11:51
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