I have Facebook for Drupal installed on my Drupal instance. My application and everything is working fine. I want to make it so one of my custom content types requires Facebook login to submit. Can I do this using the hook_form_alter()? This will be for anonymous users. I want them to see the content type (which they can already see) but once they fill in the fields and hit submit the form will require for them to be logged in through Facebook. Should i use that hook or can i accomplish this in another way?

1 Answer 1


I found out that the Drupal for Facebook module has User Management capabilities which allows me to automatically assign a temporary role to any users authenticated via Facebook. I added a role and changed the permissions to allow for the posting of my custom content type. Everything is working now! Hope this helps someone!!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.