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

facebookconnect :: adding facebook account to existing account


Reply


2 Posts   992 Views

Avatar
Futureweb

Community Member, 233 Posts

26 July 2011 at 11:03am

Hi,

I've got a the facebookconnect plugin - and the memberprofiles module set up - both work fine.

however, I about 2000 users who set up their accounts before I added facebookconnect.

It would be awesome if they could log in, and 'add' facebook connect to their existing account, so that from then onwards, they can log in to the same account either using their SS login, or their facebook login...

any suggestions on where to start?

Avatar
Willr

Forum Moderator, 5513 Posts

26 July 2011 at 11:28pm

I think the module should work fine retroactively. One issue will be if the email of their Facebook != email they used to login to SS then you would perhaps need some smart account merging ability. It's a pretty simple module, the main part you would need to test is the onBeforeInit logic - https://github.com/willrossi/silverstripe-facebookconnect/blob/master/code/FacebookConnect.php#L209 as that handles all the connection between the SS data model and Facebook.