Jump to:

10993 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » silverstripe-facebookconnect and other modules

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 966 Views
  • HansR
    Avatar
    Community Member
    140 Posts

    silverstripe-facebookconnect and other modules Link to this post

    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

  • HansR
    Avatar
    Community Member
    140 Posts

    Re: silverstripe-facebookconnect and other modules Link to this post

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

  • Futureweb
    Avatar
    Community Member
    232 Posts

    Re: silverstripe-facebookconnect and other modules Link to this post

    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!

  • Futureweb
    Avatar
    Community Member
    232 Posts

    Re: silverstripe-facebookconnect and other modules Link to this post

    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....

  • HansR
    Avatar
    Community Member
    140 Posts

    Re: silverstripe-facebookconnect and other modules Link to this post

    @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

  • Futureweb
    Avatar
    Community Member
    232 Posts

    Re: silverstripe-facebookconnect and other modules Link to this post

    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....

  • HansR
    Avatar
    Community Member
    140 Posts

    Re: silverstripe-facebookconnect and other modules Link to this post

    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

    966 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.