Adding Facebook Log in button to PHP code
Posted
by CMaury
on Stack Overflow
See other posts from Stack Overflow
or by CMaury
Published on 2010-04-30T23:31:19Z
Indexed on
2010/04/30
23:37 UTC
Read the original article
Hit count: 455
I am trying to add the new Facebook log in button to my registration page on my Drupal site.
I know the following code is wrong, but I don't know the right syntax to implement it:
function facebook_user($op, &$edit, &$user, $category = NULL) { switch($op) { // User is registering. case 'register': // Add a Facebook login button. echo ' '; } }
What should I use instead of echo? Is there another way I should be going about this?
Thanks
© Stack Overflow or respective owner