Hello,

I've read through everything so far. Registration via Facebook is working but it comes with a payoff - it changed the deafult user registration form for a facebook iframe with facebook styling. I would like to still be able to call the default registration form using drupal_get_form('user_register') or a similar snippet.

Any clues?

CommentFileSizeAuthor
#7 patch-fb-1038728-7.patch711 bytesshaneonabike

Comments

Dave Cohen’s picture

fb_registration.module is responsible. Right now its either enabled or not. Disable the module to get the regular form back. Are you saying you want both the regular form and the facebook-ized form?

I just haven't taken the time to make it an option.

miaoulafrite’s picture

+1

Katrina B’s picture

Same issue here. I want users to be able to choose to register with their Facebook account or use the standard Drupal registration form, so I want both forms visible.

Katrina B’s picture

Potential solution: Disable the FB Registration module and enable the block for Facebook Connect. I'm on a devel site, so I haven't been able to test this fully to make sure everything works -- but at first glance, it appears to give me what I want: a "Login with Facebook" button (after i changed the wording of the button in the block settings) and the standard Drupal registration form.

Dave Cohen’s picture

Yeah, that is how most users will want to set it up. Only use fb_registration.module if you want their registration form.

Katrina B’s picture

It would be helpful if there were documentation to indicate this. "If you want to use Facebook Connect, but still want users to see the default Drupal registration form, do not enable FB Registration module. If you want to replace the default Drupal registration form with a Facebook registration form, enable the FB Registration module."

shaneonabike’s picture

Version: 6.x-3.0-rc7 » 6.x-3.2-rc5
Category: support » bug
StatusFileSize
new711 bytes

Well actually I found another problem with all of this. The registration is super useful since it has a lot of great features like auto registering users that are logged in (or associating the accounts if an email matches).

There is a setting in the interface for FB user that indicates "Do alter registration form". I tried to uncheck this and realized that it actually doesn't really work (well at least how I thought). I figured that it would just disable the modification of the form.

I changed the user registration to respect this setting so that now if you uncheck this setting it will stop changing it to an iFrame. Perhaps (for now at least) this is a better workaround.

Hope this patch helps some folks or can get integrated into the release.

Note: The main reason why I had to change this is b/c with the iFrame I noticed that modules that hook into the user registration form aren't really generated properly. They end up appearing not properly (i.e. terms of use module)

Dave Cohen’s picture

That variable you talk about controls whether fb_user.module adds a connect button to the register form.

The fb_registration.module does something dramatically different (and which the vast majority of users do not want). You're better off simply disabling fb_registration.module, rather than doing what you've done in that patch.

shaneonabike’s picture

Okay ... but I still want the ability for FB users were are logged in to have accounts automatically created by FB Registration (I'm assuming that's the module that is doing this right?). If that is the case perhaps we could just add another variable that turns off the iFrame stuff?

Let me know just so I can get my head around everything :) and thanks for looking at this patch.

Dave Cohen’s picture

fb_user.module should do what you want.

http://drupal.org/node/933772