Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

facebookconnect-silverstripe


Go to End


21 Posts   6032 Views

Avatar
dacar

Community Member, 173 Posts

16 October 2010 at 1:46am

hmm, i still get stuck with this. Now i get the following if i try to "login as an other person": The action 'FacebookLoginForm' does not exist in class Security

in error_log.txt it says:

[15-Oct-2010 02:43:33] Warning at sapphire/core/control/Controller.php line 464: Already directed to https://www.facebook.com/logout.php?api_key=147460175293223&next=http%3A%2F%2Fwww.flavourtripping.de%2FSecurity%2FLoginForm&session_key=2.dHGQbJw2au28pcpjg9GBUQ__.3600.1287151200-1513896489; now trying to direct to http://www.flavourtripping.de/Security/Login (http://www.flavourtripping.de/Security/LoginForm)

There must be a loop that has to be exit or must die. But i can not find where?

@willr: does facebook-connect work aot of the box for you?

Greetings, Carsten.

Avatar
dacar

Community Member, 173 Posts

16 October 2010 at 2:18am

ohhhuuuccccchhhhh!!!!

Seems only to be working on live page, not on stage mode.

1. get the latest build from: http://github.com/willrossi/facebookconnect-silverstripe/commit/beb07270059502601139e8a24f26e905631f6ec4

2. Change line 217 of FacebookConnect.php from

Group::add_to_group_by_code($member, $group);
to
$member->addToGroupByCode($member, $group);

Thats it!

Avatar
Willr

Forum Moderator, 5523 Posts

16 October 2010 at 2:50pm

dacar, thanks for pointing that out. Committed the fix into the module - http://github.com/willrossi/facebookconnect-silverstripe/commit/949b5ef2c1562588aa66ff455d5f3e53a106fe98.

Avatar
Capt. Morgan

Community Member, 30 Posts

31 January 2011 at 1:16am

I had some problems getting the sign in button to work from a widget. I guess it's because the onBeforeInit() is run on Controller, and we're later getting CurrentFacebookMember from Widget_Controller. I did a little workaround by having the widget forward the request to the current page. Maybe there's a better solution for it, but this worked for me.

class FacebookLoginWidget extends Widget {
	public static $title = '';
	public static $cmsTitle = 'FB Sign in';
	public static $description = 'Sign in using members Facebook cridentials.';
	public function CurrentFacebookMember() {
		return $this->CurrentPage()->getCurrentFacebookMember();
	}
}

Avatar
vancouverWill

Community Member, 121 Posts

22 July 2011 at 12:58pm

hi guys

I'm having the same problem as Dacar. The login part is working but not being picked up by SS. So after I have logged in facebook realises I am logged in but SS doesn't. I tried debug::show and all i got back was, so it seems that the facebook session isn't even being intialized. any ideas anyone? thanks

will

Debug (FacebookConnect->onBeforeInit() in line 198 of FacebookConnect.php)

Go to Top