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

facebookconnect :: adding facebook account to existing account


Go to End


2 Posts   1335 Views

Avatar
JonShutt

Community Member, 244 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, 5523 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.