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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

silverstripe-facebookconnect and other modules


Go to End


7 Posts   1418 Views

Avatar
HansR

Community Member, 141 Posts

28 July 2011 at 12:11pm

I just stumbled upon the facebookconnect module, which I am considering using. However, how does it integrate with other modules such as forums. If a new user signs in with their facebook account, what would their forum nickname be? Do they get asked for a nickname? Or does it end up blank, or would their facebook name be used instead.

I like the idea of users being able to use their facebook accounts to log in as it avoids them having to remember yet another username and password combination. However, I wouldn't want to end up with heaps of seemingly anonymous posts due to the nickname being missing. The same would go for the ecommerce module. It would be great if people could use their facebook logins (assuming that you can trust them enough), but at some point they would still need to enter their address, etc.

Hans

Avatar
HansR

Community Member, 141 Posts

1 August 2011 at 9:07am

Does anyone actually use this module? From the lack of response it would seem that the answer is no.

Avatar
JonShutt

Community Member, 244 Posts

1 August 2011 at 10:22pm

HI Hans

I'm using this module on munromap.co.uk - it works fine - almost!

There are a few problems

- it doesn't save a nickname, so forum posts say 'anon'
- it doesn't allow existing members to 'add' facebook to their existing account - it just creates new accoutns
- it doesn't obviously give the user account a password- which means if a user logged in via facebook connect to their account page, they can't update their profile unless they first go and add a password.

I solved the first problem by opening up 'FacebookMember.php' and adding the following code under line 70

$this->owner->Nickname = (isset($result['first_name'])) ? $result['first_name'] : "";

I haven't got round to looking at the other two problems yet!

Avatar
JonShutt

Community Member, 244 Posts

1 August 2011 at 10:34pm

ok, just been checking,

and heres another bit of info: if a user has a SS account under the email of person@hisemail.com, and they connect using the a facebook which is using the same email, the module will link the facebook account to the existing account, if there is no matching account, the module creates a new account for the facebook user....

Avatar
HansR

Community Member, 141 Posts

3 August 2011 at 8:13am

@jonshutt

Thanks for the info, and the patch to fix the nickname problem. The second problem in your list isn't a big deal given that it will link facebook accounts to existing accounts if the email address matches. However, the third problem is a bit more serious:
- it doesn't obviously give the user account a password- which means if a user logged in via facebook connect to their account page, they can't update their profile unless they first go and add a password.

Having to enter a site password despite being logged in via facebook kind of defeats the point of being able to log in using your facebook account. Any ideas on how to fix this? I'm thinking that it might be necessary to make the forum module silverstripe-facebookconnect aware, as I expect that the code that enforces this is located there.

Hans

Avatar
JonShutt

Community Member, 244 Posts

3 August 2011 at 8:45am

I'm actually using the 'member profiles' module to manage accounts rather than the forum profile pages...

so, one could either modify that module to, like you say, make it aware of facebook connect, and worry if there is no password

or, i was wondering about just adding a random password to new accounts when people sign up with facebook connect - the user wouldn't know, it would simply be there so the member profile page doesn't try and get you enter a password...
this way i'd only be editing the code on one module, which would be future upgrades of the other, (more complicated) modules easier

Another additional problem: users logged in with facebook connect can't upload photos using uploadify. there have been discussions on this, but i haven't looked into it yet - will though....

Avatar
HansR

Community Member, 141 Posts

4 August 2011 at 4:32pm

I'm actually using the 'member profiles' module to manage accounts rather than the forum profile pages...

I didn't know about that module. It looks useful.

or, i was wondering about just adding a random password to new accounts when people sign up with facebook connect - the user wouldn't know, it would simply be there so the member profile page doesn't try and get you enter a password...

That sounds like a good solution, so long as the password generator isn't predictable in what it generates. Users could still set their own passwords if they wanted to, and it doesn't require modifying anything other than the facebookconnect module.

Hans