Hi Nathan,
I've got a problem which I don't know how to solve. I've connected my site to Facebook primarly to alow users to comment without the need of going through the registration process.
Now, I'd like to have Facebook users active (non-blocked) the moment they pass the Facebook auth and are redirected back/registered to a Drupal site. Currently they all got the "blocked" status.
Yes, I could go to admin/config/people/accounts and set "Who can register accounts?" to "Visitors". But that way, the users could log in via Drupal and become active without the admin approval, which I don't like.
I take Facebook as the authority for authenticating users, so I don't need to approve them if they logged in from FB.
What I would like to see is some kind of switch for skipping the admin approval when authenticated via FB.
Thanks in advance
PS. -> GREAT module! :)
Comments
Comment #1
magtak commentedsame issue here.
Comment #2
magtak commentedWrong. After reading #1 and configuring users to register by themselves without admin interference it all works great, 1 click and the user is logged in. Thanks for the awesome module.
Comment #3
kevcol commentedI'd love the same feature danko requested. This would keep out the non-facebook spammers.
Comment #4
aaronschachter commentedcould you not write a custom menu_alter hook to unset the 'user/register' page to keep out spammers?
function yomama_menu_alter(&$items) {
$items['user/register']['access callback'] = FALSE;
}
I could see this being an option in the module settings actually, where if you check "Facebook registration only" it calls this hook.
Comment #5
simeI intend to provide a snippet for this that modifies the user after successful response from Facebook, I just need to work out which user hook to use.
If quicksketch wants this in as a feature I will provide a patch.
Comment #6
simeAs a feature, I would suggest:
-- a setting in fboauth settings page "Automatically confirm user accounts connected with Facebook"
-- an appropriate hook/code (i haven't done this in D7 so would need to look)
Comment #7
okday commentedhi,
i need this feature too.
Comment #8
quicksketchI believe we could implement this request with just a single option on the Facebook OAuth settings page. I don't think there's a need for an additional hook or code (though I would suggest theming the user login form). Since the concept of "registration" effectively disappears when using Facebook Connect, it makes sense that you would disable user registration entirely (via the normal Drupal configuration at admin/config/people/accounts).
I think the new options could be named something like this (a checkbox with additional description):
In addition, we should probably put a note on the admin/config/people/accounts form letting administrators know if their settings are going to be bypassed by Facebook OAuth.
Comment #9
quicksketchComment #10
semei commentedThis would be a great feature. Any news on this? In my opinion, completely disabling the usual registration but allowing Facebook registration would be best.
Comment #11
mtoscano commentedTwo years later and this feature has not been implemented, even if I see it as quite important.
Am I wrong or being able to register users just with Facebook (disabling core registration) can be a common scenario?
It should also help reducing spamming users, isn't it?
Comment #12
mtoscano commentedComment #13
AlexKirienko commentedHello, mato.
Right now we working on v2 release, which will be ready on next week. After v2 release I will check this issue closely.
Comment #14
mxtHi all, I'm interest in this also.
Thank you for considering this.
Comment #15
2phaThis is pretty easy to do in your own module with HOOK_fboauth_actions.
Here is the full code of a module I created which basically copies the fboauth action but removes the checking for registration permissions, allowing anyone to sign in with facebook without having to create a password and they are signed in straight away.
This leaves the default registration alone, so you could have the people who sign up with the normal form, still have to confirm their email. Or in my case, not allow people to register the normal way, only with facebook.
The module name is "dfj_fbc", so remember to rename these parts of the code.
To add the connect button anywhere, you would use
fboauth_action_display('dfj_fbc', '/'.request_path())Comment #16
mxt@AlexKirienko, could you please consider to integrate 2pha solution in #15 in the official release as an new option?
Thank you very much.
Comment #17
AlexKirienko commented@MXT
Hi. Sorry, I was to busy on DrupalCon. There are lot of issues need to be fixed in this module. Module need new stable version ASAP. I will check this issue on next week.
Comment #18
AlexKirienko commented