Facebook API Error: Unknown method (3)
-
- Phoca Newbie
- Posts: 2
- Joined: 24 Apr 2013, 15:39
Re: Facebook API Error: Unknown method (3)
I have the same problem here "Facebook API Error: Unknown method (3)" - do I have to change something special in the Facebook App in order to avoid this error?
- Jan
- Phoca Hero
- Posts: 47870
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Facebook API Error: Unknown method (3)
Hi, which answer did you get from facebook developers?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 13 Apr 2013, 19:33
Re: Facebook API Error: Unknown method (3)
Yes. It's through the administator directory... and this is the file where I think the fix can be done, isn't it? :
<?php
/*
* @package Joomla 1.5
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*
* @component Phoca Component
* @copyright Copyright (C) Jan Pavelka https://www.phoca.cz
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
defined('_JEXEC') or die();
jimport( 'joomla.application.component.view' );
phocagalleryimport( 'phocagallery.facebook.fb' );
phocagalleryimport( 'phocagallery.facebook.fbsystem' );
class PhocaGalleryCpViewphocaGalleryFbA extends JView
{
function display($tpl = null) {
$app = JFactory::getApplication();
$document =& JFactory::getDocument();
$uri =& JFactory::getURI();
JHTML::stylesheet('administrator/components/com_phocagallery/assets/phocagallery.css' );
$this->field = JRequest::getVar('field');
$this->fce = 'phocaSelectFbAlbum_'.$this->field;
//$eName = JRequest::getVar('e_name');
//$eName = preg_replace( '#[^A-Z0-9\-\_\[\]]#i', '', $eName );
$uid = JRequest::getVar('uid', 0, '', 'int');
$db = &JFactory::getDBO();
$query = 'SELECT a.*'
. ' FROM #__phocagallery_fb_users AS a'
. ' WHERE a.published = 1'
. ' AND a.id = '.(int)$uid
. ' ORDER BY a.ordering';
$db->setQuery( $query );
$user = $db->loadObject();
if(!isset($user->uid)) {
$this->userInfo = 0;
} else {
$session = PhocaGalleryFbSystem::setSessionData($user);
$this->albums = PhocaGalleryFb::getFbAlbums($user->appid, $user->fanpageid, $user->appsid, $session);
$this->userInfo = 1;
}
//$this->assignRef('tmpl', $tmpl);
parent::display($tpl);
}
}
<?php
/*
* @package Joomla 1.5
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*
* @component Phoca Component
* @copyright Copyright (C) Jan Pavelka https://www.phoca.cz
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
defined('_JEXEC') or die();
jimport( 'joomla.application.component.view' );
phocagalleryimport( 'phocagallery.facebook.fb' );
phocagalleryimport( 'phocagallery.facebook.fbsystem' );
class PhocaGalleryCpViewphocaGalleryFbA extends JView
{
function display($tpl = null) {
$app = JFactory::getApplication();
$document =& JFactory::getDocument();
$uri =& JFactory::getURI();
JHTML::stylesheet('administrator/components/com_phocagallery/assets/phocagallery.css' );
$this->field = JRequest::getVar('field');
$this->fce = 'phocaSelectFbAlbum_'.$this->field;
//$eName = JRequest::getVar('e_name');
//$eName = preg_replace( '#[^A-Z0-9\-\_\[\]]#i', '', $eName );
$uid = JRequest::getVar('uid', 0, '', 'int');
$db = &JFactory::getDBO();
$query = 'SELECT a.*'
. ' FROM #__phocagallery_fb_users AS a'
. ' WHERE a.published = 1'
. ' AND a.id = '.(int)$uid
. ' ORDER BY a.ordering';
$db->setQuery( $query );
$user = $db->loadObject();
if(!isset($user->uid)) {
$this->userInfo = 0;
} else {
$session = PhocaGalleryFbSystem::setSessionData($user);
$this->albums = PhocaGalleryFb::getFbAlbums($user->appid, $user->fanpageid, $user->appsid, $session);
$this->userInfo = 1;
}
//$this->assignRef('tmpl', $tmpl);
parent::display($tpl);
}
}
-
- Phoca Newbie
- Posts: 2
- Joined: 02 May 2013, 19:26
Re: Facebook API Error: Unknown method (3)
I wrote Facebook Developeners now.... better I tried to, only way i found is with the stackoverflow-help-system.
http://facebook.stackoverflow.com/quest ... in-gallery
lets see if there is a reaction. Anybody here who had same problem and fixed it?
http://facebook.stackoverflow.com/quest ... in-gallery
lets see if there is a reaction. Anybody here who had same problem and fixed it?
-
- Phoca Newbie
- Posts: 7
- Joined: 16 Apr 2013, 18:19
Re: Facebook API Error: Unknown method (3)
Thank you for posting that makimuxx. Hopefully we will have an answer soon.
-
- Phoca Newbie
- Posts: 7
- Joined: 16 Apr 2013, 18:19
Re: Facebook API Error: Unknown method (3)
no one has yet replied on the facebook developers forum. this is really frustrating
. i tried it from the beginning with another Facebook user account, and again, same problem.
. i tried it from the beginning with another Facebook user account, and again, same problem.
- Jan
- Phoca Hero
- Posts: 47870
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Facebook API Error: Unknown method (3)
Hmmm, testing now on different servers, on localhost with different applications (new, old, ...) and get normally connected and can manage albums and images normally
Really no idea what exactly can be wrong there
(tested with Phoca Gallery 3.2.3, 4.0.0 Beta)
Really no idea what exactly can be wrong there
(tested with Phoca Gallery 3.2.3, 4.0.0 Beta)
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 02 May 2013, 19:26
Re: Facebook API Error: Unknown method (3)
Still no answer... But this time they've not just deleted the Question... maybe theres a solution comin...
Anyway, here the Quastionlink: http://facebook.stackoverflow.com/quest ... in-gallery
If anybody is able to add some helpfull details to this description, please do.
_________________________
EDIT
oh, i already posted it....
Anyway, here the Quastionlink: http://facebook.stackoverflow.com/quest ... in-gallery
If anybody is able to add some helpfull details to this description, please do.
_________________________
EDIT
oh, i already posted it....
- Jan
- Phoca Hero
- Posts: 47870
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Facebook API Error: Unknown method (3)
For more info: Unknown method can be called API_EC_METHOD (string which FB returns) ... but unfortunatelly, still not found any useful information about such problem and I have tried to simulate different settings and still not got such error ... really no idea for now Are you able to test it on different servers?
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 7
- Joined: 27 May 2013, 09:44
Re: Facebook API Error: Unknown method (3)
Hello everyone,
I am also having the same problem with loading Facebook albums. I've tried about every setting I could but nothing is working. When setting up/loading the facebook data, everything works fine, it is just when I go to categories and want to load FB albums is when I get: Facebook API Error: Unknown method (3).
Nothing really to add....just hoping for solution soon. I am not big on FB, just trying to set it up for a friend, so not a lot of experience with it.
One Q that come to mind: Can it be affected by the fact that under the FB profile that I am loading he has various FB accounts/pages.
So when I login to FB, I get his main account with is name, but he also has 2 or 3 hobby/bizz pages with FB under that same account .....Could this be affecting the Phoca component? (I don't have a FB account myself so I can't test it with an other FB account)......
ps: using Joomla 2.5.11 with Phoca gallery 3.2.4 and all recommended settings as shown under the "info"tab in the component.
I am also having the same problem with loading Facebook albums. I've tried about every setting I could but nothing is working. When setting up/loading the facebook data, everything works fine, it is just when I go to categories and want to load FB albums is when I get: Facebook API Error: Unknown method (3).
Nothing really to add....just hoping for solution soon. I am not big on FB, just trying to set it up for a friend, so not a lot of experience with it.
One Q that come to mind: Can it be affected by the fact that under the FB profile that I am loading he has various FB accounts/pages.
So when I login to FB, I get his main account with is name, but he also has 2 or 3 hobby/bizz pages with FB under that same account .....Could this be affecting the Phoca component? (I don't have a FB account myself so I can't test it with an other FB account)......
ps: using Joomla 2.5.11 with Phoca gallery 3.2.4 and all recommended settings as shown under the "info"tab in the component.
Last edited by jappiecr on 27 May 2013, 21:12, edited 1 time in total.