Facebook Fan Page
-
- Phoca Newbie
- Posts: 2
- Joined: 31 May 2011, 17:58
Re: Facebook Fan Page
Hi aosaos
You find solution for your problem?
I have same problem.
where i can find the fanpage id & name?
Regard
You find solution for your problem?
I have same problem.
where i can find the fanpage id & name?
Regard
-
- Phoca Newbie
- Posts: 2
- Joined: 31 May 2011, 17:58
Re: Facebook Fan Page
any solution?!
-
- Phoca Newbie
- Posts: 1
- Joined: 01 Jul 2011, 05:48
Re: Facebook Fan Page
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.
- Jan
- Phoca Hero
- Posts: 48041
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Facebook Fan Page
Hi, I still didn't find any relevant information for this issue
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 1
- Joined: 15 Jul 2011, 08:49
Re: Facebook Fan Page
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,
the albums of a page,
and the images of an album,
So,
1/ We must obtain all accounts of an user
2/ We must replace the call to api method from
to
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
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
Code: Select all
https://graph.facebook.com/19292868552/albums
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));
Code: Select all
$facebook->api('/200209080028856/albums');
(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
- Jan
- Phoca Hero
- Posts: 48041
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Facebook Fan Page
Hi, thank you for this info.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 14
- Joined: 17 Jun 2011, 08:58
Re: Facebook Fan Page
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?
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?
- Jan
- Phoca Hero
- Posts: 48041
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Facebook Fan Page
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/
Jan
https://www.phoca.cz/phoca-needs-your-help/
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 7
- Joined: 25 Jul 2011, 13:05
Re: Facebook Fan Page
Hey ppto_1982,
did you find a solution?
did you find a solution?
-
- Phoca Newbie
- Posts: 7
- Joined: 25 Jul 2011, 13:05
Re: Facebook Fan Page
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
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