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.

All other Modules

Discuss all other Modules here.

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

silverstripe-facebookconnect and other modules


Reply

7 Posts   976 Views

Avatar
HansR

28 July 2011 at 12:11pm Community Member, 140 Posts

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

1 August 2011 at 9:07am Community Member, 140 Posts

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

Avatar
Futureweb

1 August 2011 at 10:22pm Community Member, 233 Posts

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
Futureweb

1 August 2011 at 10:34pm Community Member, 233 Posts

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

3 August 2011 at 8:13am Community Member, 140 Posts

@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
Futureweb

3 August 2011 at 8:45am Community Member, 233 Posts

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

4 August 2011 at 4:32pm Community Member, 140 Posts

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