Hi - I see in #1305784: Make fboauth's default connect action respect core's admin approval required setting that the idea was "If admin user creation only is enabled, don't allow fboauth to create new users". However, that's not the only case where we need to prevent automatic creation of users.
On the site I'm trying this out with:
1. I need to make sure they add a number of attributes to the user account when signing up (that must be done on my side)
2. They need to validate their account using email (a la logintoboggan).
So there are two problems (or two points in my ignorance). First, I want to prevent creation of a new account (unless I can get them to fill in more details). Second, if they are creating a new account, I need to be able to get control and have them do all that.
Any guidance for me on this one?
Thanks!
Comments
Comment #1
quicksketchHi @rfay!
Considering the level of control it sounds like you need, you might be better suited writing your own (potentially fully custom) FBOAuth action instead of using the default 'connect' action provided by FBOAuth. FBOAuth comes with two actions out of the box "connect" (which is what people use to log in) and "deauth", which disconnects the Facebook account from the Drupal account and deauthorizes the site's Facebook permissions previously granted by the user.
I would suggest that you not use the "connect" action at all, instead make an entirely new action using hook_fboauth_actions(). I've written up extensive documentation on how to do the basics of this in the README.txt file and in the fboauth.api.php file. Once you have the permissions you need from Facebook, you might be able to piggy-back on a lot of the existing code, but then do all the additional customizations you need and then redirect to a custom location after you have gathered the user's Facebook information.
Let me know if that's not clear, I can elaborate further if you have any questions about setting up a custom action.
Comment #2
rfayThanks so much, @quicksketch. I'll give this a look. Essentially I just want to disable the user account creation completely, so it sounds like I can do that by forking your connect action and calling it something different in custom code.
Thanks so much!
-Randy
Comment #3
oadaeh commentedCleaning up the issue queue.
Comment #4
rfayFYI, I did exactly as recommended by @quicksketch here, and it worked fine and was well received.
https://github.com/warmshowers/Warmshowers.org/tree/site/docroot/sites/a... (updated 12/12/2013)
Comment #5
webmaster.washuapo commentedrfay can you please post the code you used, as the link provided does not work. I too want to be able for people to login but NOT register via FB
Comment #6
rfayI updated #4 with the current link. Things had been reorganized just a bit.