|
|||
I have seen a lot of posts asking about white pages (you probably just have error reporting disabled in php config) and invalid session errors.
This is actually a known-problem from the Facebook team: Common error messages - Facebook Developer Wiki I had this working and then all of a sudden, something was going nuts, the problem here is that with all the cross-site madness, the Cookies get messed up, following their advice, I modified: Code:
<yousite>/modules/mod_jconnector/facebook/php/facebook.php and now logins seems to magically work. I will try a few more test cases (I am currently logged in to facebook already, need to try logged in and out a few times to confirm and will report if this does not solve). I think cookies would make it run a little quicker, but if they want less calls to their server, they should figure out a better fix.
__________________
My Joomla Apps: http://www.webdesignhero.com/store My Joomla Tutorials: http://ericgoldman.name/web-development/4-joomla |
|
|||
So, I have been playing with it a little bit now - it adds an auth token to every URL and seems to take the page much much longer to load as well, which is not desirable.
__________________
My Joomla Apps: http://www.webdesignhero.com/store My Joomla Tutorials: http://ericgoldman.name/web-development/4-joomla |
|
|||
Found this: Facebook Platform Developer Forum / got "?auth_token=somekey&auth_token=somekey&auth_token =somekey..."
Trying his advice, and getting valid values with: Code:
public function require_login() {
/**Added by Eric: 2:18 PM Saturday, February 27, 2010
why? http://forum.developers.facebook.com/viewtopic.php?pid=196832#p196832
**/
$this->api_key = $api_key;
$this->secret = $secret;
$fb = new Facebook($api_key, $secret);
$s = $this->do_get_session($_GET['auth_token']);
$fb->set_user($s['uid'], $s['session_key'], $s['expires'], $s['secret']);
if ($user = $this->get_loggedin_user()) {
return $user;
}
$this->redirect($this->get_login_url(self::current_url(), $this->in_frame()));
}
__________________
My Joomla Apps: http://www.webdesignhero.com/store My Joomla Tutorials: http://ericgoldman.name/web-development/4-joomla |
|
|||
One last update for now, it seems at some point during this debugging I added
Code:
$facebook->require_login();
__________________
My Joomla Apps: http://www.webdesignhero.com/store My Joomla Tutorials: http://ericgoldman.name/web-development/4-joomla |
|
|||
or maybe not,
@mod can you enable post editing, I feel like a jerk posting a new threat each time.
__________________
My Joomla Apps: http://www.webdesignhero.com/store My Joomla Tutorials: http://ericgoldman.name/web-development/4-joomla |





Linear Mode
